mirror of
https://github.com/david-schmidt/gsport.git
synced 2024-12-28 19:32:31 +00:00
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:
parent
514a316566
commit
5cc387205e
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user