summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-16 17:43:43 -0400
committerPietro Gagliardi <[email protected]>2014-08-16 17:43:43 -0400
commit6d56f6f6b7aae235916b1197540e9d350b4877b8 (patch)
treeab97b63aa3acfe43f5f52832c5bba60906da608a
parent270c03269f6ea1d2a8d9b30153f9f488eac53622 (diff)
Improved scaling quality of images in ImageLists and more TODOs.
-rw-r--r--redo/imagelist_windows.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/redo/imagelist_windows.c b/redo/imagelist_windows.c
index 0ad851f..a6db91f 100644
--- a/redo/imagelist_windows.c
+++ b/redo/imagelist_windows.c
@@ -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)