mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-01 01:13:40 +00:00
Add FULLSCREEN_PLATFORM constant (as in branch 0.8).
This commit is contained in:
parent
431fc99d40
commit
f09cf4db4b
@ -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
|
||||
|
3
TODO.txt
3
TODO.txt
@ -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.
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user