mirror of
https://github.com/david-schmidt/gsport.git
synced 2024-06-01 12:41:29 +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)
|
#if defined (WIN32)
|
||||||
// Show Print dialog to obtain a printer device context
|
// Show Print dialog to obtain a printer device context
|
||||||
|
|
||||||
|
ShowCursor(1);
|
||||||
PRINTDLG pd;
|
PRINTDLG pd;
|
||||||
pd.lStructSize = sizeof(PRINTDLG);
|
pd.lStructSize = sizeof(PRINTDLG);
|
||||||
pd.hDevMode = (HANDLE) NULL;
|
pd.hDevMode = (HANDLE) NULL;
|
||||||
|
@ -225,6 +226,7 @@ Imagewriter::Imagewriter(Bit16u dpi, Bit16u paperSize, Bit16u bannerSize, char*
|
||||||
PrintDlg(&pd);
|
PrintDlg(&pd);
|
||||||
// TODO: what if user presses cancel?
|
// TODO: what if user presses cancel?
|
||||||
printerDC = pd.hDC;
|
printerDC = pd.hDC;
|
||||||
|
ShowCursor(0);
|
||||||
#endif // WIN32
|
#endif // WIN32
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user