# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1336067157 0 # Node ID 1b10b4534bc42408b9f67d69bea9dd032374da69 # Parent cc3aba44943e942a9cf9f8f955529facedde6dad 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. diff -r cc3aba44943e -r 1b10b4534bc4 os2/dw.c --- 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};