From 125ce29ff8eedc7d940e4fa1cb0103435461715c Mon Sep 17 00:00:00 2001 From: Dimitris Panokostas Date: Thu, 13 Oct 2022 15:13:40 +0200 Subject: [PATCH] bugfix: fixed inversed x/y gfx coordinates It appears that the x/y coordinates saved for the top/left window position were inversed in the config file. This fixes them so that x=left and y=top --- cfgfile.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cfgfile.cpp b/cfgfile.cpp index 7bd8565a..2670d15d 100644 --- a/cfgfile.cpp +++ b/cfgfile.cpp @@ -2287,8 +2287,8 @@ void cfgfile_save_options (struct zfile *f, struct uae_prefs *p, int type) cfgfile_write(f, _T("gfx_framerate"), _T("%d"), p->gfx_framerate); write_resolution(f, _T("gfx_width"), _T("gfx_height"), &p->gfx_monitor[0].gfx_size_win); /* compatibility with old versions */ - cfgfile_write (f, _T("gfx_top_windowed"), _T("%d"), p->gfx_monitor[0].gfx_size_win.x); - cfgfile_write(f, _T("gfx_left_windowed"), _T("%d"), p->gfx_monitor[0].gfx_size_win.y); + cfgfile_write (f, _T("gfx_top_windowed"), _T("%d"), p->gfx_monitor[0].gfx_size_win.y); + cfgfile_write(f, _T("gfx_left_windowed"), _T("%d"), p->gfx_monitor[0].gfx_size_win.x); cfgfile_dwrite_bool(f, _T("gfx_resize_windowed"), p->gfx_windowed_resize); write_resolution(f, _T("gfx_width_windowed"), _T("gfx_height_windowed"), &p->gfx_monitor[0].gfx_size_win); write_resolution(f, _T("gfx_width_fullscreen"), _T("gfx_height_fullscreen"), &p->gfx_monitor[0].gfx_size_fs); @@ -3498,8 +3498,8 @@ static int cfgfile_parse_host (struct uae_prefs *p, TCHAR *option, TCHAR *value) || cfgfile_intval(option, value, _T("gfx_frame_slices"), &p->gfx_display_sections, 1) || cfgfile_intval(option, value, _T("gfx_framerate"), &p->gfx_framerate, 1) - || cfgfile_intval(option, value, _T("gfx_top_windowed"), &p->gfx_monitor[0].gfx_size_win.x, 1) - || cfgfile_intval(option, value, _T("gfx_left_windowed"), &p->gfx_monitor[0].gfx_size_win.y, 1) + || cfgfile_intval(option, value, _T("gfx_top_windowed"), &p->gfx_monitor[0].gfx_size_win.y, 1) + || cfgfile_intval(option, value, _T("gfx_left_windowed"), &p->gfx_monitor[0].gfx_size_win.x, 1) || cfgfile_intval(option, value, _T("gfx_refreshrate"), &p->gfx_apmode[APMODE_NATIVE].gfx_refreshrate, 1) || cfgfile_intval(option, value, _T("gfx_refreshrate_rtg"), &p->gfx_apmode[APMODE_RTG].gfx_refreshrate, 1) || cfgfile_intval(option, value, _T("gfx_autoresolution_delay"), &p->gfx_autoresolution_delay, 1) -- 2.47.3