don't change window position on fullscreen changes
This commit is contained in:
parent
a4479e6738
commit
77ae2dc0cd
|
@ -650,6 +650,8 @@ static void win32_save_position(void)
|
|||
g_win32_pos_height = rect.bottom - rect.top;
|
||||
}
|
||||
if (settings && settings->bools.video_window_save_positions)
|
||||
{
|
||||
if (!settings->bools.video_fullscreen && !retroarch_is_forced_fullscreen())
|
||||
{
|
||||
settings->uints.window_position_x = g_win32_pos_x;
|
||||
settings->uints.window_position_y = g_win32_pos_y;
|
||||
|
@ -657,6 +659,7 @@ static void win32_save_position(void)
|
|||
settings->uints.window_position_height = g_win32_pos_height;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static LRESULT CALLBACK WndProcCommon(bool *quit, HWND hwnd, UINT message,
|
||||
WPARAM wparam, LPARAM lparam)
|
||||
|
@ -1324,6 +1327,7 @@ bool win32_set_video_mode(void *data,
|
|||
&mon_rect, width, height, fullscreen))
|
||||
return false;
|
||||
|
||||
|
||||
win32_set_window(&width, &height,
|
||||
fullscreen, windowed_full, &rect);
|
||||
|
||||
|
|
Loading…
Reference in New Issue