Pasting image from clipboard: partial support of top-down DIB image (still needs completion)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12881 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
09f15fcac0
commit
6cdfd92247
@ -796,7 +796,7 @@ void Fl_WinAPI_System_Driver::paste(Fl_Widget &receiver, int clipboard, const ch
|
||||
if ((h = GetClipboardData(CF_DIB))) { // if there's a DIB in clipboard
|
||||
LPBITMAPINFO lpBI = (LPBITMAPINFO)GlobalLock(h);
|
||||
width = lpBI->bmiHeader.biWidth; // bitmap width & height
|
||||
height = lpBI->bmiHeader.biHeight;
|
||||
height = abs(lpBI->bmiHeader.biHeight);
|
||||
if ((lpBI->bmiHeader.biBitCount == 24 || lpBI->bmiHeader.biBitCount == 32) &&
|
||||
lpBI->bmiHeader.biCompression == BI_RGB &&
|
||||
lpBI->bmiHeader.biClrUsed == 0) { // direct use of the DIB data if it's RGB or RGBA
|
||||
|
||||
Loading…
Reference in New Issue
Block a user