]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/screenshotgen/src/autocapture.cpp
Removed dummy wxFont == operator implementation (IIRC was needed to compile with...
[wxWidgets.git] / utils / screenshotgen / src / autocapture.cpp
index 48cadb86ef71e2bb011ca1d8d2136edcc1143d4c..62ae1b88dce94d1d447635a712a6e6ef15a31eda 100644 (file)
 #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 <wx/filename.h>
+#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);