projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
adjust drawable screen size to cover the whole device display (Android)
[rocksndiamonds.git]
/
src
/
libgame
/
system.c
diff --git
a/src/libgame/system.c
b/src/libgame/system.c
index 222b6f609a19d9d1fb899891b064e6f0dfa14f8e..98ccd70cafb02341a04ba4f367c82bf0d5251621 100644
(file)
--- a/
src/libgame/system.c
+++ b/
src/libgame/system.c
@@
-363,6
+363,7
@@
void LimitScreenUpdates(boolean enable)
void InitVideoDisplay(void)
{
SDLInitVideoDisplay();
void InitVideoDisplay(void)
{
SDLInitVideoDisplay();
+ SDLSetDisplaySize();
}
void CloseVideoDisplay(void)
}
void CloseVideoDisplay(void)
@@
-378,6
+379,11
@@
void InitVideoBuffer(int width, int height, int depth, boolean fullscreen)
video.height = height;
video.depth = GetRealDepth(depth);
video.height = height;
video.depth = GetRealDepth(depth);
+ video.screen_width = width;
+ video.screen_height = height;
+ video.screen_xoffset = 0;
+ video.screen_yoffset = 0;
+
video.fullscreen_available = FULLSCREEN_STATUS;
video.fullscreen_enabled = FALSE;
video.fullscreen_available = FULLSCREEN_STATUS;
video.fullscreen_enabled = FALSE;