Always show mouse cursor when printer selection dialog is shown. Previously the cursor was hidden when under GS/OS or when the mouse was "captured" via F8.

This commit is contained in:
Christopher Mason 2015-02-09 02:23:14 +00:00
parent 514a316566
commit 5cc387205e
1 changed files with 2 additions and 0 deletions

View File

@ -202,6 +202,7 @@ Imagewriter::Imagewriter(Bit16u dpi, Bit16u paperSize, Bit16u bannerSize, char*
#if defined (WIN32)
// Show Print dialog to obtain a printer device context
ShowCursor(1);
PRINTDLG pd;
pd.lStructSize = sizeof(PRINTDLG);
pd.hDevMode = (HANDLE) NULL;
@ -225,6 +226,7 @@ Imagewriter::Imagewriter(Bit16u dpi, Bit16u paperSize, Bit16u bannerSize, char*
PrintDlg(&pd);
// TODO: what if user presses cancel?
printerDC = pd.hDC;
ShowCursor(0);
#endif // WIN32
}
}