diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-30 01:15:28 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-30 01:15:28 -0400 |
| commit | 4f16b9438877d353e52870cb3631509bd0677da9 (patch) | |
| tree | 41aec2030b2b837a6e5aef94e9233fa4e89b9716 /redo/imagelist_windows.c | |
| parent | 432a210726f2c5b753ff430765e9b3736d8db3b2 (diff) | |
Fixed image lists on Windows being NON-premultiplied.
Diffstat (limited to 'redo/imagelist_windows.c')
| -rw-r--r-- | redo/imagelist_windows.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/redo/imagelist_windows.c b/redo/imagelist_windows.c index 4402268..f7bddb4 100644 --- a/redo/imagelist_windows.c +++ b/redo/imagelist_windows.c @@ -22,7 +22,9 @@ HBITMAP unscaledBitmap(void *i, intptr_t dx, intptr_t dy) bitmap = CreateDIBSection(NULL, &bi, DIB_RGB_COLORS, &ppvBits, 0, 0); if (bitmap == NULL) xpanic("error creating HBITMAP for unscaled ImageList image copy", GetLastError()); - dotoARGB(i, (void *) ppvBits); + // image lists use non-premultiplied RGBA - see http://stackoverflow.com/a/25578789/3408572 + // the TRUE here does the conversion + dotoARGB(i, (void *) ppvBits, TRUE); return bitmap; } |
