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
This commit is contained in:
Pierre Ossman
2014-06-17 11:13:55 +00:00
parent 776fd2a107
commit 06ee4b9b14
+1 -1
View File
@@ -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) {