projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20140104-3-src
[rocksndiamonds.git]
/
src
/
libgame
/
system.h
diff --git
a/src/libgame/system.h
b/src/libgame/system.h
index e3454997cc1d83afa841c2a9ca48045845a720d3..68a56cddcf611009da002240c1601e145a2a19b6 100644
(file)
--- a/
src/libgame/system.h
+++ b/
src/libgame/system.h
@@
-24,6
+24,8
@@
#include "windows.h"
#elif defined(PLATFORM_MSDOS)
#include "msdos.h"
#include "windows.h"
#elif defined(PLATFORM_MSDOS)
#include "msdos.h"
+#elif defined(PLATFORM_ANDROID)
+#include "android.h"
#endif
#if defined(TARGET_SDL)
#endif
#if defined(TARGET_SDL)
@@
-642,6
+644,11
@@
gfx.draw_busy_anim_function(); \
}
gfx.draw_busy_anim_function(); \
}
+/* values for window scaling */
+#define MIN_WINDOW_SCALING_PERCENT 10
+#define STD_WINDOW_SCALING_PERCENT 100
+#define MAX_WINDOW_SCALING_PERCENT 300
+
/* type definitions */
#if defined(TARGET_SDL2)
/* type definitions */
#if defined(TARGET_SDL2)
@@
-726,6
+733,9
@@
struct VideoSystemInfo
boolean fullscreen_enabled;
struct ScreenModeInfo *fullscreen_modes;
char *fullscreen_mode_current;
boolean fullscreen_enabled;
struct ScreenModeInfo *fullscreen_modes;
char *fullscreen_mode_current;
+
+ boolean window_scaling_available;
+ int window_scaling_percent;
};
struct AudioSystemInfo
};
struct AudioSystemInfo
@@
-935,6
+945,7
@@
struct SetupInfo
boolean time_limit;
boolean fullscreen;
char *fullscreen_mode;
boolean time_limit;
boolean fullscreen;
char *fullscreen_mode;
+ int window_scaling_percent;
boolean ask_on_escape;
boolean ask_on_escape_editor;
boolean quick_switch;
boolean ask_on_escape;
boolean ask_on_escape_editor;
boolean quick_switch;