From 89f480207d1c09592152a26869bbeced19b45179 Mon Sep 17 00:00:00 2001 From: OV2 Date: Fri, 3 Jan 2020 16:23:56 +0100 Subject: [PATCH] win32: fix for save/load preview dialog in opengl fullscreen (#580) --- win32/CSaveLoadWithPreviewDlg.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/win32/CSaveLoadWithPreviewDlg.cpp b/win32/CSaveLoadWithPreviewDlg.cpp index e8d408a1..5a25138c 100644 --- a/win32/CSaveLoadWithPreviewDlg.cpp +++ b/win32/CSaveLoadWithPreviewDlg.cpp @@ -184,7 +184,7 @@ void CSaveLoadWithPreviewDlg::load_current_bank(HWND hDlg) void CSaveLoadWithPreviewDlg::init_window(HWND hDlg) { if(is_save_dialog) - SetWindowText(hDlg, L"Save with preview"); + SetWindowText(hDlg, L"Save with Preview"); int x_pos = 0; int y_pos = 0; @@ -312,6 +312,7 @@ int CSaveLoadWithPreviewDlg::show() delete_preview_bmps(); if(init_preview_bmps()) { + RedrawWindow(GUI.hWnd, 0, 0, RDW_INTERNALPAINT); // workaround to get the dialog to show in OpenGL fullscreen / emulated fullscreen ret = DialogBoxParam(GUI.hInstance, MAKEINTRESOURCE(IDD_DIALOG_LOAD_PREVIEW), GUI.hWnd, DlgLoadWithPreview, (LPARAM)this); }