Additional check in ImageWin32.cpp

git-svn-id: svn://ultimatepp.org/upp/trunk@9628 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2016-03-25 18:22:51 +00:00
parent fbd1fa0a4d
commit 5b2dc3973d

View file

@ -291,6 +291,7 @@ void ImageSysData::Paint(SystemDraw& w, int x, int y, const Rect& src, Color c)
LTIMING("Image Alpha create");
BitmapInfo32__ bi(sz.cx, sz.cy);
himg = CreateDIBSection(ScreenHDC(), bi, DIB_RGB_COLORS, (void **)&section, NULL, 0);
if(!himg) return; // Return on release.
Copy(section, ~img, img.GetLength());
}
LTIMING("Image Alpha blit");