Changeset 3494 for libcaca/trunk/caca/driver/ncurses.c
 Timestamp:
 May 21, 2009, 10:55:13 PM (12 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

libcaca/trunk/caca/driver/ncurses.c
r3489 r3494 348 348 int x, y, i; 349 349 350 for(i = 0; i < caca_get_dirty_rect angle_count(dp>cv); i++)350 for(i = 0; i < caca_get_dirty_rect_count(dp>cv); i++) 351 351 { 352 352 uint32_t const *cvchars, *cvattrs; 353 int xmin, ymin, xmax, ymax;354 355 caca_get_dirty_rect angle(dp>cv, i, &xmin, &ymin, &xmax, &ymax);353 int dx, dy, dw, dh; 354 355 caca_get_dirty_rect(dp>cv, i, &dx, &dy, &dw, &dh); 356 356 357 357 cvchars = (uint32_t const *)caca_get_canvas_chars(dp>cv) 358 + xmin + ymin* dp>cv>width;358 + dx + dy * dp>cv>width; 359 359 cvattrs = (uint32_t const *)caca_get_canvas_attrs(dp>cv) 360 + xmin + ymin* dp>cv>width;361 362 for(y = ymin; y <= ymax; y++)360 + dx + dy * dp>cv>width; 361 362 for(y = dy; y < dy + dh; y++) 363 363 { 364 move(y, xmin);365 for(x = xmin; x <= xmax; x++)364 move(y, dx); 365 for(x = dx; x < dx + dw; x++) 366 366 { 367 367 attrset(dp>drv.p>attr[caca_attr_to_ansi(*cvattrs++)]); … … 369 369 } 370 370 371 cvchars += dp>cv>width  (xmax  xmin)  1;372 cvattrs += dp>cv>width  (xmax  xmin)  1;371 cvchars += dp>cv>width  dw; 372 cvattrs += dp>cv>width  dw; 373 373 } 374 374 }
Note: See TracChangeset
for help on using the changeset viewer.