[ Feature Request #5715 ] Added new cmd-line option -no-printscreen-dlg to suppress the warning if the PrintScreen key can't be grabbed.

This commit is contained in:
tomch 2013-12-23 03:20:54 +00:00
parent 3f8691cae4
commit 5fec1609e6
3 changed files with 8 additions and 1 deletions

View File

@ -677,7 +677,7 @@ void AppleWin_RegisterHotKeys(void)
VK_SNAPSHOT // UINT vk = PrintScreen
);
if (! bStatus)
if (!bStatus && g_bShowPrintScreenWarningDialog)
{
MessageBox( g_hFrameWindow, "Unable to capture PrintScreen key", "Warning", MB_OK );
}
@ -827,6 +827,10 @@ int APIENTRY WinMain(HINSTANCE passinstance, HINSTANCE, LPSTR lpCmdLine, int)
{
g_bDisplayPrintScreenFileName = true;
}
else if (strcmp(lpCmdLine, "-no-printscreen-dlg") == 0) // Turn off the PrintScreen warning message dialog (if PrintScreen key can't be grabbed)
{
g_bShowPrintScreenWarningDialog = false;
}
else if (strcmp(lpCmdLine, "-spkr-inc") == 0)
{
lpCmdLine = GetCurrArg(lpNextArg);

View File

@ -362,6 +362,7 @@ static bool bVideoScannerNTSC = true; // NTSC video scanning (or PAL)
void V_CreateLookup_MonoHiRes_Colorize ();
bool g_bDisplayPrintScreenFileName = false;
bool g_bShowPrintScreenWarningDialog = true;
void Util_MakeScreenShotFileName( char *pFinalFileName_ );
bool Util_TestScreenShotFileName( const char *pFileName );
// true = 280x192

View File

@ -123,6 +123,8 @@ bool UpdateHiResCell (int x, int y, int xpixel, int ypixel, int offset);
bool UpdateDHiResCell (int x, int y, int xpixel, int ypixel, int offset);
extern bool g_bDisplayPrintScreenFileName;
extern bool g_bShowPrintScreenWarningDialog;
void Video_ResetScreenshotCounter( char *pDiskImageFileName );
enum VideoScreenShot_e
{