projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
improved virtual buttons for touch devices (Android)
[rocksndiamonds.git]
/
src
/
libgame
/
system.c
diff --git
a/src/libgame/system.c
b/src/libgame/system.c
index 222b6f609a19d9d1fb899891b064e6f0dfa14f8e..5443e87da6ebd560a3ef446c8f45d4f107b4ed15 100644
(file)
--- a/
src/libgame/system.c
+++ b/
src/libgame/system.c
@@
-33,6
+33,7
@@
struct OptionInfo options;
struct VideoSystemInfo video;
struct AudioSystemInfo audio;
struct GfxInfo gfx;
struct VideoSystemInfo video;
struct AudioSystemInfo audio;
struct GfxInfo gfx;
+struct OverlayInfo overlay;
struct ArtworkInfo artwork;
struct JoystickInfo joystick;
struct SetupInfo setup;
struct ArtworkInfo artwork;
struct JoystickInfo joystick;
struct SetupInfo setup;
@@
-270,6
+271,21
@@
void InitGfxOtherSettings()
gfx.cursor_mode = CURSOR_DEFAULT;
}
gfx.cursor_mode = CURSOR_DEFAULT;
}
+void InitOverlayInfo()
+{
+ overlay.active = FALSE;
+}
+
+void SetOverlayActive(boolean active)
+{
+ overlay.active = active;
+}
+
+boolean GetOverlayActive()
+{
+ return overlay.active;
+}
+
void SetDrawDeactivationMask(int draw_deactivation_mask)
{
gfx.draw_deactivation_mask = draw_deactivation_mask;
void SetDrawDeactivationMask(int draw_deactivation_mask)
{
gfx.draw_deactivation_mask = draw_deactivation_mask;
@@
-363,6
+379,7
@@
void LimitScreenUpdates(boolean enable)
void InitVideoDisplay(void)
{
SDLInitVideoDisplay();
void InitVideoDisplay(void)
{
SDLInitVideoDisplay();
+ SDLSetDisplaySize();
}
void CloseVideoDisplay(void)
}
void CloseVideoDisplay(void)
@@
-378,6
+395,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;