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

Comparing rxvt-unicode/src/rxvtimg.C (file contents):
Revision 1.14 by root, Mon Jun 4 15:53:12 2012 UTC vs.
Revision 1.16 by root, Mon Jun 4 16:12:55 2012 UTC

268 268
269 if (channels == 4 && alpha_mask == 0) 269 if (channels == 4 && alpha_mask == 0)
270 { 270 {
271 //pix_colors[Color_bg].get (c); 271 //pix_colors[Color_bg].get (c);
272 //TODO 272 //TODO
273 c.r = 0xffff; c.g = 0xc0c0; c.b = 0xcbcb;//D
273 c.r >>= 8; 274 c.r >>= 8;
274 c.g >>= 8; 275 c.g >>= 8;
275 c.b >>= 8; 276 c.b >>= 8;
276 } 277 }
277 278
358 359
359rxvt_img * 360rxvt_img *
360rxvt_img::scale (int new_width, int new_height) 361rxvt_img::scale (int new_width, int new_height)
361{ 362{
362 double matrix[9] = { 363 double matrix[9] = {
363 new_width / (double)w, 0, 0, 364 w / (double)new_width, 0, 0,
364 0, new_height / (double)h, 0, 365 0, h / (double)new_height, 0,
365 0, 0, 1 366 0, 0, 1
366 }; 367 };
367 368
368 return transform (new_width, new_height, RepeatNormal, matrix); 369 return transform (new_width, new_height, RepeatNormal, matrix);
369} 370}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines