nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4ed4a9
)
gamnit: set resolution at 1080p for splash screens (as the doc says)
author
Alexis Laferrière
<alexis.laf@xymus.net>
Tue, 17 Oct 2017 00:24:46 +0000
(20:24 -0400)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Wed, 20 Dec 2017 15:21:06 +0000
(10:21 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/gamnit/flat/flat_core.nit
patch
|
blob
|
history
diff --git
a/lib/gamnit/flat/flat_core.nit
b/lib/gamnit/flat/flat_core.nit
index
22ea7b3
..
8f9bff1
100644
(file)
--- a/
lib/gamnit/flat/flat_core.nit
+++ b/
lib/gamnit/flat/flat_core.nit
@@
-399,6
+399,9
@@
redef class App
var display = display
assert display != null
glClear gl_COLOR_BUFFER_BIT
+
+ ui_camera.reset_height 1080.0
+ glViewport(0, 0, display.width, display.height)
frame_core_ui_sprites display
display.flip