Changeset 728 for libcaca/trunk/caca/driver_x11.c
- Timestamp:
- Apr 7, 2006, 11:46:30 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/caca/driver_x11.c
r724 r728 261 261 { 262 262 uint32_t *attr = kk->qq->attr + x + y * kk->qq->width; 263 uint8_t bg = _cucul_ rgba32_to_ansi4bg(*attr);263 uint8_t bg = _cucul_argb32_to_ansi4bg(*attr); 264 264 265 265 len = 1; 266 266 while(x + len < kk->qq->width 267 && _cucul_ rgba32_to_ansi4bg(attr[len]) == bg)267 && _cucul_argb32_to_ansi4bg(attr[len]) == bg) 268 268 len++; 269 269 270 270 XSetForeground(kk->drv.p->dpy, kk->drv.p->gc, 271 kk->drv.p->colors[_cucul_ rgba32_to_ansi4bg(*attr)]);271 kk->drv.p->colors[_cucul_argb32_to_ansi4bg(*attr)]); 272 272 XFillRectangle(kk->drv.p->dpy, kk->drv.p->pixmap, kk->drv.p->gc, 273 273 x * kk->drv.p->font_width, y * kk->drv.p->font_height, … … 292 292 293 293 XSetForeground(kk->drv.p->dpy, kk->drv.p->gc, 294 kk->drv.p->colors[_cucul_ rgba32_to_ansi4fg(*attr)]);294 kk->drv.p->colors[_cucul_argb32_to_ansi4fg(*attr)]); 295 295 296 296 /* Plain ASCII, no problem. */
Note: See TracChangeset
for help on using the changeset viewer.