Skip to content

Commit

Permalink
Upgrade android framebuffer bb to RGB32 for color rendering (#526)
Browse files Browse the repository at this point in the history
  • Loading branch information
poire-z authored and Frenzie committed Oct 1, 2017
1 parent 0d7ba99 commit c56aea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ffi/framebuffer_android.lua
Expand Up @@ -6,7 +6,7 @@ local framebuffer = {}

function framebuffer:init()
-- we present this buffer to the outside
self.bb = BB.new(android.screen.width, android.screen.height)
self.bb = BB.new(android.screen.width, android.screen.height, BB.TYPE_BBRGB32)
-- TODO: should we better use these?
-- android.lib.ANativeWindow_getWidth(window)
-- android.lib.ANativeWindow_getHeight(window)
Expand Down

0 comments on commit c56aea6

Please sign in to comment.