Improved scaling quality of images in ImageLists and more TODOs.
This commit is contained in:
parent
270c03269f
commit
6d56f6f6b7
|
@ -67,6 +67,8 @@ void addImage(HIMAGELIST il, HWND hwnd, HBITMAP bitmap, int origwid, int oright,
|
|||
prevscaled = SelectObject(scaledDC, scaled);
|
||||
if (prevscaled == NULL)
|
||||
xpanic("error selecting scaled ImageList bitmap into DC", GetLastError());
|
||||
if (SetStretchBltMode(scaledDC, COLORONCOLOR) == 0)
|
||||
xpanic("error setting scaling mode", GetLastError());
|
||||
if (StretchBlt(scaledDC, 0, 0, width, height,
|
||||
origDC, 0, 0, origwid, oright,
|
||||
SRCCOPY) == 0)
|
||||
|
|
Loading…
Reference in New Issue