From 5cc387205e33b9b6e4cbe7fff5a5728391593b2c Mon Sep 17 00:00:00 2001 From: Christopher Mason Date: Mon, 9 Feb 2015 02:23:14 +0000 Subject: [PATCH] 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. --- src/imagewriter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/imagewriter.cpp b/src/imagewriter.cpp index 46a9c55..b9fd453 100644 --- a/src/imagewriter.cpp +++ b/src/imagewriter.cpp @@ -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 } }