mirror of
https://github.com/aseprite/aseprite.git
synced 2024-10-03 21:46:20 +00:00
Fixed some strange bugs that appears when a exception is thrown in file-loading process.
This commit is contained in:
parent
4810ab8228
commit
ca25326d5d
@ -416,10 +416,15 @@ static void load_gui_config(int& w, int& h, int& bpp, bool& fullscreen, bool& ma
|
||||
|
||||
static void save_gui_config()
|
||||
{
|
||||
set_config_int("GfxMode", "Width", SCREEN_W);
|
||||
set_config_int("GfxMode", "Height", SCREEN_H);
|
||||
set_config_int("GfxMode", "Depth", bitmap_color_depth(screen));
|
||||
set_config_bool("GfxMode", "FullScreen", gfx_driver->windowed ? false: true);
|
||||
if (screen) {
|
||||
set_config_int("GfxMode", "Width", SCREEN_W);
|
||||
set_config_int("GfxMode", "Height", SCREEN_H);
|
||||
set_config_int("GfxMode", "Depth", bitmap_color_depth(screen));
|
||||
}
|
||||
|
||||
if (gfx_driver)
|
||||
set_config_bool("GfxMode", "FullScreen", gfx_driver->windowed ? false: true);
|
||||
|
||||
set_config_int("GfxMode", "Scale", screen_scaling);
|
||||
|
||||
#if defined HAVE_RESIZE_PATCH && defined ALLEGRO_WINDOWS
|
||||
|
Loading…
Reference in New Issue
Block a user