mirror of
https://github.com/aseprite/aseprite.git
synced 2024-11-20 14:21:45 +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()
|
static void save_gui_config()
|
||||||
{
|
{
|
||||||
set_config_int("GfxMode", "Width", SCREEN_W);
|
if (screen) {
|
||||||
set_config_int("GfxMode", "Height", SCREEN_H);
|
set_config_int("GfxMode", "Width", SCREEN_W);
|
||||||
set_config_int("GfxMode", "Depth", bitmap_color_depth(screen));
|
set_config_int("GfxMode", "Height", SCREEN_H);
|
||||||
set_config_bool("GfxMode", "FullScreen", gfx_driver->windowed ? false: true);
|
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);
|
set_config_int("GfxMode", "Scale", screen_scaling);
|
||||||
|
|
||||||
#if defined HAVE_RESIZE_PATCH && defined ALLEGRO_WINDOWS
|
#if defined HAVE_RESIZE_PATCH && defined ALLEGRO_WINDOWS
|
||||||
|
Loading…
Reference in New Issue
Block a user