… | |
… | |
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 | |
359 | rxvt_img * |
360 | rxvt_img * |
360 | rxvt_img::scale (int new_width, int new_height) |
361 | rxvt_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 | } |