added: -printscreen command line to enable display of print screen filename

This commit is contained in:
mpohoreski 2008-08-25 01:10:37 +00:00
parent dc1001fe30
commit 3ed6912be6
2 changed files with 6 additions and 1 deletions

View File

@ -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 );
}
}

View File

@ -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);