mirror of
https://github.com/fltk/fltk.git
synced 2026-05-22 23:37:02 +08:00
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:
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user