Fix for STR#3308 - MacOS-specific part

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12008 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy
2016-10-04 11:26:36 +00:00
parent 68688867f1
commit 6df5b37006
+2 -1
View File
@@ -3768,6 +3768,7 @@ int Fl_X::set_cursor(const Fl_RGB_Image *image, int hotx, int hoty) {
// Alpha needs to be premultiplied for this format
const uchar *i = (const uchar*)*image->data();
const int extra_data = image->ld() ? (image->ld() - image->w() * image->d()) : 0;
unsigned char *o = [bitmap bitmapData];
for (int y = 0;y < image->h();y++) {
if (!(image->d() & 1)) {
@@ -3791,7 +3792,7 @@ int Fl_X::set_cursor(const Fl_RGB_Image *image, int hotx, int hoty) {
o += len;
i += len;
}
i += image->ld();
i += extra_data;
}
NSImage *nsimage = [[NSImage alloc]