ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/init.C
(Generate patch)

Comparing rxvt-unicode/src/init.C (file contents):
Revision 1.259 by root, Sat May 30 08:51:23 2009 UTC vs.
Revision 1.261 by sf-exg, Sat Jan 30 20:52:36 2010 UTC

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
317static void 318static 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)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines