]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/cursor.cpp
Finally removes occurences of OnMenuCommand and closes bug #1164678
[wxWidgets.git] / src / gtk1 / cursor.cpp
index e394b6f94244f108c55f4ba1463eb86322985f43..3ddd0650f8f1626dd0b19938a200570a78064b76 100644 (file)
@@ -4,13 +4,9 @@
 // Author:      Robert Roebling
 // Id:          $Id$
 // Copyright:   (c) 1998 Robert Roebling
-// Licence:     wxWidgets licence
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma implementation "cursor.h"
-#endif
-
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
@@ -256,14 +252,14 @@ wxCursor::wxCursor( const wxImage & image )
 
     int fg_intensity = fg.Red() + fg.Green() + fg.Blue();
     int bg_intensity = bg.Red() + bg.Green() + bg.Blue();
-       
-       if (bg_intensity > fg_intensity)
-       {
+
+    if (bg_intensity > fg_intensity)
+    {
         //swap fg and bg
         wxColour tmp = fg;
         fg = bg;
         bg = tmp;
-       }                                                        
+    }
 
     int hotSpotX;
     int hotSpotY;