mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
fix icon display
svn path=/trunk/; revision=28265
This commit is contained in:
parent
e7e1292fea
commit
b395135182
1 changed files with 9 additions and 5 deletions
|
@ -1565,6 +1565,7 @@ BITMAPOBJ_CopyBitmap(HBITMAP hBitmap)
|
|||
HBITMAP res;
|
||||
BITMAP bm;
|
||||
BITMAPOBJ *Bitmap, *resBitmap;
|
||||
SIZEL Size;
|
||||
|
||||
if (hBitmap == NULL)
|
||||
{
|
||||
|
@ -1582,11 +1583,14 @@ BITMAPOBJ_CopyBitmap(HBITMAP hBitmap)
|
|||
if (Bitmap->SurfObj.lDelta >= 0)
|
||||
bm.bmHeight = -bm.bmHeight;
|
||||
|
||||
res = NtGdiCreateBitmap(bm.bmWidth,
|
||||
bm.bmHeight,
|
||||
bm.bmPlanes,
|
||||
bm.bmBitsPixel,
|
||||
bm.bmBits);
|
||||
Size.cx = abs(bm.bmWidth);
|
||||
Size.cy = abs(bm.bmHeight);
|
||||
res = IntCreateBitmap(Size,
|
||||
bm.bmWidthBytes,
|
||||
BitmapFormat(bm.bmBitsPixel * bm.bmPlanes, BI_RGB),
|
||||
(bm.bmHeight < 0 ? BMF_TOPDOWN : 0) | BMF_NOZEROINIT,
|
||||
NULL);
|
||||
|
||||
if(res)
|
||||
{
|
||||
PBYTE buf;
|
||||
|
|
Loading…
Reference in a new issue