… | |
… | |
308 | set_option (Opt_skipScroll); |
308 | set_option (Opt_skipScroll); |
309 | set_option (Opt_secondaryScreen); |
309 | set_option (Opt_secondaryScreen); |
310 | set_option (Opt_secondaryScroll); |
310 | set_option (Opt_secondaryScroll); |
311 | set_option (Opt_pastableTabs); |
311 | set_option (Opt_pastableTabs); |
312 | set_option (Opt_intensityStyles); |
312 | set_option (Opt_intensityStyles); |
|
|
313 | set_option (Opt_iso14755); |
313 | set_option (Opt_iso14755_52); |
314 | set_option (Opt_iso14755_52); |
314 | set_option (Opt_buffered); |
315 | set_option (Opt_buffered); |
315 | } |
316 | } |
316 | |
317 | |
317 | static void |
318 | static void |
… | |
… | |
1157 | ASImage *im = file2ASImage (rs [Rs_iconfile], 0xFFFFFFFF, SCREEN_GAMMA, 0, NULL); |
1158 | ASImage *im = file2ASImage (rs [Rs_iconfile], 0xFFFFFFFF, SCREEN_GAMMA, 0, NULL); |
1158 | if (asv && im) |
1159 | if (asv && im) |
1159 | { |
1160 | { |
1160 | int w = im->width; |
1161 | int w = im->width; |
1161 | int h = im->height; |
1162 | int h = im->height; |
1162 | long* buffer = (long *)malloc ((2 + w * h) * sizeof (long)); |
1163 | long *buffer = (long *)malloc ((2 + w * h) * sizeof (long)); |
1163 | ASImage *result = scale_asimage (asv, im, |
1164 | ASImage *result = scale_asimage (asv, im, |
1164 | w, h, ASA_ARGB32, |
1165 | w, h, ASA_ARGB32, |
1165 | 100, ASIMAGE_QUALITY_DEFAULT); |
1166 | 100, ASIMAGE_QUALITY_DEFAULT); |
1166 | destroy_asimage (&im); |
1167 | destroy_asimage (&im); |
1167 | |
1168 | |
… | |
… | |
1174 | for (unsigned int i = 0; i < w * h; ++i) |
1175 | for (unsigned int i = 0; i < w * h; ++i) |
1175 | buffer [i + 2] = asbuf [i]; |
1176 | buffer [i + 2] = asbuf [i]; |
1176 | |
1177 | |
1177 | destroy_asimage (&result); |
1178 | destroy_asimage (&result); |
1178 | XChangeProperty (dpy, top, xa[XA_NET_WM_ICON], XA_CARDINAL, 32, |
1179 | XChangeProperty (dpy, top, xa[XA_NET_WM_ICON], XA_CARDINAL, 32, |
1179 | PropModeReplace, (const unsigned char*) buffer, 2 + w * h); |
1180 | PropModeReplace, (const unsigned char *) buffer, 2 + w * h); |
1180 | free (buffer); |
1181 | free (buffer); |
1181 | } |
1182 | } |
1182 | else |
1183 | else |
1183 | { |
1184 | { |
1184 | if (!buffer) |
1185 | if (!buffer) |