Expand tabs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35148 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -256,14 +256,14 @@ wxCursor::wxCursor( const wxImage & image )
|
|||||||
|
|
||||||
int fg_intensity = fg.Red() + fg.Green() + fg.Blue();
|
int fg_intensity = fg.Red() + fg.Green() + fg.Blue();
|
||||||
int bg_intensity = bg.Red() + bg.Green() + bg.Blue();
|
int bg_intensity = bg.Red() + bg.Green() + bg.Blue();
|
||||||
|
|
||||||
if (bg_intensity > fg_intensity)
|
if (bg_intensity > fg_intensity)
|
||||||
{
|
{
|
||||||
//swap fg and bg
|
//swap fg and bg
|
||||||
wxColour tmp = fg;
|
wxColour tmp = fg;
|
||||||
fg = bg;
|
fg = bg;
|
||||||
bg = tmp;
|
bg = tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
int hotSpotX;
|
int hotSpotX;
|
||||||
int hotSpotY;
|
int hotSpotY;
|
||||||
|
@@ -256,14 +256,14 @@ wxCursor::wxCursor( const wxImage & image )
|
|||||||
|
|
||||||
int fg_intensity = fg.Red() + fg.Green() + fg.Blue();
|
int fg_intensity = fg.Red() + fg.Green() + fg.Blue();
|
||||||
int bg_intensity = bg.Red() + bg.Green() + bg.Blue();
|
int bg_intensity = bg.Red() + bg.Green() + bg.Blue();
|
||||||
|
|
||||||
if (bg_intensity > fg_intensity)
|
if (bg_intensity > fg_intensity)
|
||||||
{
|
{
|
||||||
//swap fg and bg
|
//swap fg and bg
|
||||||
wxColour tmp = fg;
|
wxColour tmp = fg;
|
||||||
fg = bg;
|
fg = bg;
|
||||||
bg = tmp;
|
bg = tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
int hotSpotX;
|
int hotSpotX;
|
||||||
int hotSpotY;
|
int hotSpotY;
|
||||||
|
Reference in New Issue
Block a user