mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-09 03:24:59 -06:00
Additional check in ImageWin32.cpp
git-svn-id: svn://ultimatepp.org/upp/trunk@9628 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
fbd1fa0a4d
commit
5b2dc3973d
1 changed files with 1 additions and 0 deletions
|
|
@ -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 **)§ion, NULL, 0);
|
||||
if(!himg) return; // Return on release.
|
||||
Copy(section, ~img, img.GetLength());
|
||||
}
|
||||
LTIMING("Image Alpha blit");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue