From: Mart Raudsepp Date: Mon, 8 Aug 2005 09:35:27 +0000 (+0000) Subject: Expand tabs X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/86e69fa54aa2f51e78172abf96f5f6e38062816b Expand tabs git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35148 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/cursor.cpp b/src/gtk/cursor.cpp index 4360b9748d..73c259eaa5 100644 --- a/src/gtk/cursor.cpp +++ b/src/gtk/cursor.cpp @@ -256,14 +256,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; diff --git a/src/gtk1/cursor.cpp b/src/gtk1/cursor.cpp index 4360b9748d..73c259eaa5 100644 --- a/src/gtk1/cursor.cpp +++ b/src/gtk1/cursor.cpp @@ -256,14 +256,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;