Add "Take Screenshot" to Windows version. Writes to "screenshots" subdirectory. No smart file naming yet.

This commit is contained in:
Henrik Rydgard committed 2013-06-22 22:28:48 +02:00
1 parent 3034989300
commit 23ee9b8cd5
8 files changed
+57 -4

No files matched your search

+4 -1
View File
@@ -47,7 +47,7 @@
BOOL g_bFullScreen = FALSE;
static RECT g_normalRC = {0};
extern bool g_TakeScreenshot;
extern InputState input_state;
extern const char * getVirtualKeyName(unsigned char key);
extern const char * getXinputButtonName(unsigned int button);
@@ -771,6 +771,9 @@ namespace MainWindow
DialogBox(hInst, (LPCTSTR)IDD_ABOUTBOX, hWnd, (DLGPROC)About);
DialogManager::EnableAll(TRUE);
break;
case ID_DEBUG_TAKESCREENSHOT:
g_TakeScreenshot = true;
break;
default:
MessageBox(hwndMain,"Unimplemented","Sorry",0);