Fix fullscreen notification "don't ask again", closes #948

This commit is contained in:
RichardG867
2020-07-27 19:28:32 -03:00
parent 95c11cf483
commit 6276bb67ee
2 changed files with 4 additions and 2 deletions

View File

@@ -1587,7 +1587,7 @@ save_general(void)
else
config_set_int(cat, "video_fullscreen_scale", video_fullscreen_scale);
if (video_fullscreen_first == 0)
if (video_fullscreen_first == 1)
config_delete_var(cat, "video_fullscreen_first");
else
config_set_int(cat, "video_fullscreen_first", video_fullscreen_first);

View File

@@ -790,8 +790,10 @@ plat_setfullscreen(int on)
if (on && video_fullscreen) return;
if (on && video_fullscreen_first) {
if (ui_msgbox_header(MBX_INFO | MBX_DONTASK, (wchar_t *) IDS_2134, (wchar_t *) IDS_2052) == 10)
if (ui_msgbox_header(MBX_INFO | MBX_DONTASK, (wchar_t *) IDS_2134, (wchar_t *) IDS_2052) == 10) {
video_fullscreen_first = 0;
config_save();
}
}
/* OK, claim the video. */