Changeset 3450
- Timestamp:
- May 14, 2009, 2:18:37 AM (13 years ago)
- Location:
- libcaca/trunk/caca
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/caca/attr.c
r3448 r3450 157 157 } 158 158 159 caca_add_dirty_rectangle(cv, xmin, xmax, y, y);159 caca_add_dirty_rectangle(cv, xmin, y, xmax, y); 160 160 161 161 return 0; -
libcaca/trunk/caca/canvas.c
r3448 r3450 322 322 * \param xmin A pointer to an integer where the leftmost edge of the 323 323 * dirty rectangle will be stored. 324 * \param ymin A pointer to an integer where the topmost edge of the 325 * dirty rectangle will be stored. 324 326 * \param xmax A pointer to an integer where the rightmost edge of the 325 * dirty rectangle will be stored.326 * \param ymin A pointer to an integer where the topmost edge of the327 327 * dirty rectangle will be stored. 328 328 * \param ymax A pointer to an integer where the bottommost edge of the … … 330 330 * \return This function always returns 0. 331 331 */ 332 int caca_get_dirty_rectangle(caca_canvas_t *cv, int *xmin, int * xmax,333 int * ymin, int *ymax)332 int caca_get_dirty_rectangle(caca_canvas_t *cv, int *xmin, int *ymin, 333 int *xmax, int *ymax) 334 334 { 335 335 *xmin = cv->dirty_xmin; … … 357 357 * \param cv A libcaca canvas. 358 358 * \param xmin The leftmost edge of the additional dirty rectangle. 359 * \param ymin The topmost edge of the additional dirty rectangle. 359 360 * \param xmax The rightmost edge of the additional dirty rectangle. 360 * \param ymin The topmost edge of the additional dirty rectangle.361 361 * \param ymax The bottommost edge of the additional dirty rectangle. 362 362 * \return This function always returns 0. 363 363 */ 364 int caca_add_dirty_rectangle(caca_canvas_t *cv, int xmin, int xmax,365 int ymin, int ymax)364 int caca_add_dirty_rectangle(caca_canvas_t *cv, int xmin, int ymin, 365 int xmax, int ymax) 366 366 { 367 367 /* Ignore empty rectangles. */ … … 400 400 * \param cv A libcaca canvas. 401 401 * \param xmin The leftmost edge of the desired dirty rectangle. 402 * \param ymin The topmost edge of the desired dirty rectangle. 402 403 * \param xmax The rightmost edge of the desired dirty rectangle. 403 * \param ymin The topmost edge of the desired dirty rectangle.404 404 * \param ymax The bottommost edge of the desired dirty rectangle. 405 405 * \return This function always returns 0. 406 406 */ 407 int caca_set_dirty_rectangle(caca_canvas_t *cv, int xmin, int xmax,408 int ymin, int ymax)407 int caca_set_dirty_rectangle(caca_canvas_t *cv, int xmin, int ymin, 408 int xmax, int ymax) 409 409 { 410 410 /* Normalise values indicating an empty or out-of-bounds rectangle. */ -
libcaca/trunk/caca/string.c
r3448 r3450 171 171 * replace its right part with a space. */ 172 172 if(x + 1 != (int)cv->width && curchar[1] == CACA_MAGIC_FULLWIDTH) 173 { 173 174 curchar[1] = ' '; 174 } 175 176 caca_add_dirty_rectangle(cv, xmin, xmax, y, y); 175 xmax++; 176 } 177 } 178 179 caca_add_dirty_rectangle(cv, xmin, y, xmax, y); 177 180 178 181 curchar[0] = ch;
Note: See TracChangeset
for help on using the changeset viewer.