Fix Fl::paste() in Fl_win32.cxx to paste GIF images.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12879 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2018-04-29 16:09:15 +00:00
parent b26d944e58
commit e60e4750f8

View File

@ -780,7 +780,7 @@ void Fl::paste(Fl_Widget &receiver, int clipboard, const char *type) {
}
}
else { // the system will decode a complex DIB
void *pDIBBits = (void*)(lpBI->bmiColors);
void *pDIBBits = (void*)(lpBI->bmiColors + 256);
if (lpBI->bmiHeader.biCompression == BI_BITFIELDS) pDIBBits = (void*)(lpBI->bmiColors + 3);
else if (lpBI->bmiHeader.biClrUsed > 0) pDIBBits = (void*)(lpBI->bmiColors + lpBI->bmiHeader.biClrUsed);
Fl_Offscreen off = fl_create_offscreen(width, height);