mirror of
https://github.com/QB64Official/qb64.git
synced 2024-07-05 10:00:23 +00:00
Minor fix to _SCREENIMAGE (function).
_SETALPHA needs to be called on the resulting image, as some images com with alpha = 0 from the clipboard.
This commit is contained in:
parent
8af68290e9
commit
90e0b0df16
|
@ -24364,6 +24364,8 @@ int32 func__clipboardimage(){
|
|||
hdc=GetDC(NULL);
|
||||
|
||||
GetDIBits(hdc,bitmap,0,h,write_page->offset,(BITMAPINFO*)&bi, DIB_RGB_COLORS);
|
||||
sub__setalpha(255,NULL,NULL,NULL,0); // required as some images come
|
||||
// with alpha 0 from the clipboard
|
||||
sub__dest(i2);
|
||||
|
||||
ReleaseDC(NULL,hdc);
|
||||
|
|
Loading…
Reference in a new issue