Changeset 1254 for libcaca/trunk/caca/driver_x11.c
- Timestamp:
- Oct 29, 2006, 1:53:46 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/caca/driver_x11.c
r1233 r1254 247 247 for(x = 0; x < dp->cv->width; x += len) 248 248 { 249 uint32_t *attr = dp->cv->attr+ x + y * dp->cv->width;250 uint16_t bg = _cucul_a rgb32_to_rgb12bg(*attr);249 uint32_t *attrs = dp->cv->attrs + x + y * dp->cv->width; 250 uint16_t bg = _cucul_attr_to_rgb12bg(*attrs); 251 251 252 252 len = 1; 253 253 while(x + len < dp->cv->width 254 && _cucul_a rgb32_to_rgb12bg(attr[len]) == bg)254 && _cucul_attr_to_rgb12bg(attrs[len]) == bg) 255 255 len++; 256 256 … … 272 272 for(x = 0; x < dp->cv->width; x++, chars++) 273 273 { 274 uint32_t *attr = dp->cv->attr+ x + y * dp->cv->width;274 uint32_t *attrs = dp->cv->attrs + x + y * dp->cv->width; 275 275 276 276 /* Skip spaces */ … … 282 282 283 283 XSetForeground(dp->drv.p->dpy, dp->drv.p->gc, 284 dp->drv.p->colors[_cucul_a rgb32_to_rgb12fg(*attr)]);284 dp->drv.p->colors[_cucul_attr_to_rgb12fg(*attrs)]); 285 285 286 286 /* Plain ASCII, no problem. */
Note: See TracChangeset
for help on using the changeset viewer.