changeset 1702:1b10b4534bc4

Fixed creating icons from other file types on OS/2. Forgot the height was supposed to be double for the mask. Currently there is no alpha support, will see about adding it later for formats that support alpha.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 03 May 2012 17:45:57 +0000
parents cc3aba44943e
children 043db6b221c2
files os2/dw.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/os2/dw.c	Thu May 03 12:19:54 2012 +0000
+++ b/os2/dw.c	Thu May 03 17:45:57 2012 +0000
@@ -8910,9 +8910,9 @@
 HICN _create_icon(char *file, HPIXMAP src)
 {
     HPIXMAP pntr = dw_pixmap_new(hwndApp, WinQuerySysValue(HWND_DESKTOP, SV_CXICON), WinQuerySysValue(HWND_DESKTOP, SV_CYICON), src->depth);
-    HPIXMAP mask = dw_pixmap_new(hwndApp, pntr->width, pntr->height, 1);
+    HPIXMAP mask = dw_pixmap_new(hwndApp, pntr->width, pntr->height*2, 1);
     HPIXMAP minipntr = dw_pixmap_new(hwndApp, pntr->width/2, pntr->height/2, src->depth);
-    HPIXMAP minimask = dw_pixmap_new(hwndApp, minipntr->width, minipntr->height, 1);
+    HPIXMAP minimask = dw_pixmap_new(hwndApp, minipntr->width, minipntr->height*2, 1);
     ULONG oldcol = _foreground;
     POINTERINFO pi = {0};