Improved scaling quality of images in ImageLists and more TODOs.

This commit is contained in:
Pietro Gagliardi 2014-08-16 17:43:43 -04:00
parent 270c03269f
commit 6d56f6f6b7
1 changed files with 2 additions and 0 deletions

View File

@ -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)