From 70831ccbe5dfdb0761733d8b3d7375798ea017d1 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Tue, 7 Jun 2011 16:53:29 +1000 Subject: [PATCH] Added Mac Screenshots Don't Work Taunt. --- Projects/CodeBlocks/SleepyHead.depend | 4 ++-- src/SleepyHeadMain.cpp | 4 ++++ src/version.h | 12 ++++++------ 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/Projects/CodeBlocks/SleepyHead.depend b/Projects/CodeBlocks/SleepyHead.depend index 35c351fb..6f896798 100644 --- a/Projects/CodeBlocks/SleepyHead.depend +++ b/Projects/CodeBlocks/SleepyHead.depend @@ -8295,7 +8295,7 @@ -1307425559 /home/mark/projects/git/sleepyhead/src/version.h +1307429469 /home/mark/projects/git/sleepyhead/src/version.h 1307418393 /home/mark/projects/git/sleepyhead/src/libs/sleeplib/prs1_loader.h "machine.h" @@ -8312,7 +8312,7 @@ "preferences.h" "tinyxml/tinyxml.h" -1307425549 source:/home/mark/projects/git/sleepyhead/src/SleepyHeadMain.cpp +1307429469 source:/home/mark/projects/git/sleepyhead/src/SleepyHeadMain.cpp "wx_pch.h" "version.h" diff --git a/src/SleepyHeadMain.cpp b/src/SleepyHeadMain.cpp index 356a772b..c1b1c543 100644 --- a/src/SleepyHeadMain.cpp +++ b/src/SleepyHeadMain.cpp @@ -211,6 +211,9 @@ void SleepyHeadFrame::DoScreenshot( wxCommandEvent &event ) r.height += j.height; #endif +#if defined(__WXMAC__) + wxMessageBox(wxT("Sorry.. Screenshots don't work on your platform.\n\nPlease use your Mac's screenshot capability instead."),wxT("Naughty Apple!"),wxICON_EXCLAMATION,this); +#else wxScreenDC sdc; wxMemoryDC mdc; @@ -233,6 +236,7 @@ void SleepyHeadFrame::DoScreenshot( wxCommandEvent &event ) wxLogError(wxT("Couldn't save screenshot ")+filename); } } +#endif } void SleepyHeadFrame::OnShowSerial(wxCommandEvent& event) { diff --git a/src/version.h b/src/version.h index f5b0b653..4e09afeb 100644 --- a/src/version.h +++ b/src/version.h @@ -16,14 +16,14 @@ namespace AutoVersion{ //Standard Version Type static const long MAJOR = 0; static const long MINOR = 7; - static const long BUILD = 3355; - static const long REVISION = 1458; + static const long BUILD = 3371; + static const long REVISION = 1550; //Miscellaneous Version Types - static const long BUILDS_COUNT = 553; - #define RC_FILEVERSION 0,7,3355,1458 - #define RC_FILEVERSION_STRING "0, 7, 3355, 1458\0" - static const char FULLVERSION_STRING[] = "0.7.3355.1458"; + static const long BUILDS_COUNT = 592; + #define RC_FILEVERSION 0,7,3371,1550 + #define RC_FILEVERSION_STRING "0, 7, 3371, 1550\0" + static const char FULLVERSION_STRING[] = "0.7.3371.1550"; //These values are to keep track of your versioning state, don't modify them. static const long BUILD_HISTORY = 0;