From 90e0b0df1627afe19ffec338d6c78bf39b1a0179 Mon Sep 17 00:00:00 2001 From: FellippeHeitor Date: Wed, 6 Sep 2017 21:03:41 -0300 Subject: [PATCH] Minor fix to _SCREENIMAGE (function). _SETALPHA needs to be called on the resulting image, as some images com with alpha = 0 from the clipboard. --- internal/c/libqb.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/c/libqb.cpp b/internal/c/libqb.cpp index e357b8ab5..30a9b33de 100644 --- a/internal/c/libqb.cpp +++ b/internal/c/libqb.cpp @@ -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);