X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/101adcd54c72f26cac85e92b28cc8564e8903d05..cfcc02a8a4f019e3846b73660209080602e44967:/utils/screenshotgen/src/autocapture.cpp diff --git a/utils/screenshotgen/src/autocapture.cpp b/utils/screenshotgen/src/autocapture.cpp index 48cadb86ef..62ae1b88dc 100644 --- a/utils/screenshotgen/src/autocapture.cpp +++ b/utils/screenshotgen/src/autocapture.cpp @@ -10,15 +10,16 @@ #include "wx/wxprec.h" #ifdef __BORLANDC__ - #pragma hdrstop +#pragma hdrstop #endif -// for all others, include the necessary headers +// for all others, include the necessary headers wxWidgets headers) #ifndef WX_PRECOMP - #include "wx/wx.h" +#include "wx/wx.h" #endif -#include +#include "wx/filename.h" + #include "autocapture.h" #ifdef __WXMAC__ @@ -33,8 +34,7 @@ /* static */ void AutoCaptureMechanism::Delay(int seconds) { - using std::clock; - using std::clock_t; + // TODO: Switch this to use wxTimer. // Wait for 3 seconds clock_t start = clock(); @@ -185,10 +185,6 @@ wxBitmap AutoCaptureMechanism::Capture(Control& ctrl) ctrl.name.StartsWith(_T("wx"), &(ctrl.name)); ctrl.name.MakeLower(); - // AD-HOC FIX for wxHyperlink - if (ctrl.name == "generichyperlinkctrl") - ctrl.name = "hyperlinkctrl"; - // take the screenshot wxBitmap screenshot = Capture(rect);