From 3ed6912be67174922750b237f34ea1370f837bbb Mon Sep 17 00:00:00 2001 From: mpohoreski Date: Mon, 25 Aug 2008 01:10:37 +0000 Subject: [PATCH] added: -printscreen command line to enable display of print screen filename --- AppleWin/source/Video.cpp | 6 +++++- AppleWin/source/Video.h | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/AppleWin/source/Video.cpp b/AppleWin/source/Video.cpp index 41c762e6..ee47eb20 100644 --- a/AppleWin/source/Video.cpp +++ b/AppleWin/source/Video.cpp @@ -258,6 +258,7 @@ void DrawMonoLoResSource (); void DrawMonoTextSource (HDC dc); void DrawTextSource (HDC dc); +bool g_bDisplayPrintScreenFileName = false; void Util_MakeScreenShotFileName( char *pFinalFileName_ ); bool Util_TestScreenShotFileName( const char *pFileName ); void Video_TakeScreenShot(); @@ -2535,5 +2536,8 @@ void Video_SaveScreenShot( const char *pScreenShotFileName ) fclose( pFile ); } - MessageBox( NULL, pScreenShotFileName, "Screen Captured", MB_OK ); + if( g_bDisplayPrintScreenFileName ) + { + MessageBox( NULL, pScreenShotFileName, "Screen Captured", MB_OK ); + } } diff --git a/AppleWin/source/Video.h b/AppleWin/source/Video.h index ee72db4b..7bc80dcf 100644 --- a/AppleWin/source/Video.h +++ b/AppleWin/source/Video.h @@ -71,6 +71,7 @@ bool VideoGetSW80COL(); DWORD VideoGetSnapshot(SS_IO_Video* pSS); DWORD VideoSetSnapshot(SS_IO_Video* pSS); +extern bool g_bDisplayPrintScreenFileName; void Video_TakeScreenShot(); BYTE __stdcall VideoCheckMode (WORD pc, WORD addr, BYTE bWrite, BYTE d, ULONG nCyclesLeft);