Changeset 3484 for libcaca/trunk
- Timestamp:
- May 19, 2009, 10:42:40 PM (11 years ago)
- Location:
- libcaca/trunk/caca
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/caca/dirty.c
r3471 r3484 58 58 * 59 59 * \param cv A libcaca canvas. 60 * \param indexThe requested rectangle index.60 * \param r The requested rectangle index. 61 61 * \param xmin A pointer to an integer where the leftmost edge of the 62 62 * dirty rectangle will be stored. … … 69 69 * \return 0 in case of success, -1 if an error occurred. 70 70 */ 71 int caca_get_dirty_rectangle(caca_canvas_t *cv, int index,71 int caca_get_dirty_rectangle(caca_canvas_t *cv, int r, 72 72 int *xmin, int *ymin, int *xmax, int *ymax) 73 73 { 74 if( index < 0 || index>= cv->ndirty)74 if(r < 0 || r >= cv->ndirty) 75 75 { 76 76 seterrno(EINVAL); -
libcaca/trunk/caca/figfont.c
r3130 r3484 391 391 else 392 392 { 393 unsigned int tmp; 394 393 395 if(caca_file_gets(f, buf, 2048) == NULL) 394 396 break; … … 416 418 } 417 419 418 if(buf[1] == 'x') 419 sscanf(buf, "%x", &ff->lookup[ff->glyphs * 2]); 420 else 421 sscanf(buf, "%u", &ff->lookup[ff->glyphs * 2]); 420 sscanf(buf, buf[1] == 'x' ? "%x" : "%u", &tmp); 421 ff->lookup[ff->glyphs * 2] = tmp; 422 422 } 423 423
Note: See TracChangeset
for help on using the changeset viewer.