From 06ee4b9b14d825c77e464ae59fed5544d802d4a5 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 17 Jun 2014 11:13:55 +0000 Subject: Fix inverted logic. It's the even depth values that include alpha. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10199 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_cocoa.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 722ece9cd..a82c78039 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -3355,7 +3355,7 @@ int Fl_X::set_cursor(const Fl_RGB_Image *image, int hotx, int hoty) { const uchar *i = (const uchar*)*image->data(); unsigned char *o = [bitmap bitmapData]; for (int y = 0;y < image->h();y++) { - if (image->d() & 1) { + if (!(image->d() & 1)) { for (int x = 0;x < image->w();x++) { unsigned int alpha; if (image->d() == 4) { -- cgit v1.2.3