nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gamnit: enable dynamic window resizing on desktop
[nit.git]
/
lib
/
gamnit
/
display_android.nit
diff --git
a/lib/gamnit/display_android.nit
b/lib/gamnit/display_android.nit
index
3ae7ee5
..
e9d1b4a
100644
(file)
--- a/
lib/gamnit/display_android.nit
+++ b/
lib/gamnit/display_android.nit
@@
-37,7
+37,7
@@
redef class GamnitDisplay
setup_egl_display native_display
# We need 8 bits per color for selection by color
setup_egl_display native_display
# We need 8 bits per color for selection by color
- select_egl_config(8, 8, 8, 0, 8, 0, 0)
+ select_egl_config(red_bits, green_bits, blue_bits, 0, 8, 0, 0)
var format = egl_config.attribs(egl_display).native_visual_id
native_window.set_buffers_geometry(0, 0, format)
var format = egl_config.attribs(egl_display).native_visual_id
native_window.set_buffers_geometry(0, 0, format)