diff options
| author | Pierre Ossman <ossman@cendio.se> | 2014-06-17 11:13:55 +0000 |
|---|---|---|
| committer | Pierre Ossman <ossman@cendio.se> | 2014-06-17 11:13:55 +0000 |
| commit | 06ee4b9b14d825c77e464ae59fed5544d802d4a5 (patch) | |
| tree | 2ad0b68e44c382b7dd39551c86fe1a7d446835b1 /src | |
| parent | 776fd2a107667cac6cf490f39047a7eeadace309 (diff) | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_cocoa.mm | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |
