Add FULLSCREEN_PLATFORM constant (as in branch 0.8).

This commit is contained in:
David Capello 2011-08-09 20:27:12 -03:00
parent 431fc99d40
commit f09cf4db4b
3 changed files with 10 additions and 4 deletions

View File

@ -35,6 +35,7 @@ option(USE_SHARED_ZLIB "Use your installed copy of zlib" off)
option(USE_SHARED_LIBPNG "Use your installed copy of libpng" off)
option(ENABLE_MEMLEAK "Enable memory-leaks detector (only for developers)" off)
option(ENABLE_UPDATER "Enable automatic check for updates" on)
option(FULLSCREEN_PLATFORM "Enable fullscreen by default" off)
######################################################################
# Profile build type

View File

@ -1,9 +1,6 @@
For next release
----------------
+ Add a flag (compiler flag or a flag in gui.xml) to set fullscreen
mode as the default one (for special devices where fullscreen is
preferred).
+ Add IntEntry class in src/gui/ with spin-buttons.
+ Add feedback to "Shift+S" shortcut to switch "snap to grid".
+ Fix palette editor to avoid generating a lot of consecutive Undo actions.

View File

@ -214,9 +214,11 @@ int init_module_gui()
has_desktop = get_desktop_resolution(&dsk_w, &dsk_h) == 0;
#ifndef FULLSCREEN_PLATFORM
// We must extract some space for the windows borders
dsk_w -= 16;
dsk_h -= 32;
#endif
// Try to get desktop resolution
if (has_desktop) {
@ -376,7 +378,13 @@ static void load_gui_config(int& w, int& h, int& bpp, bool& fullscreen, bool& ma
w = get_config_int("GfxMode", "Width", 0);
h = get_config_int("GfxMode", "Height", 0);
bpp = get_config_int("GfxMode", "Depth", 0);
fullscreen = get_config_bool("GfxMode", "FullScreen", false);
fullscreen = get_config_bool("GfxMode", "FullScreen",
#ifdef FULLSCREEN_PLATFORM
true
#else
false
#endif
);
screen_scaling = get_config_int("GfxMode", "ScreenScale", 2);
screen_scaling = MID(1, screen_scaling, 4);
maximized = get_config_bool("GfxMode", "Maximized", false);