Ignore:
Timestamp:
Apr 19, 2008, 9:25:52 PM (12 years ago)
Author:
Sam Hocevar
Message:
  • Remove all unsigned ints from exported functions. Signed arithmetic is far better for error checking.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/driver_conio.c

    r2300 r2305  
    8585}
    8686
    87 static unsigned int conio_get_display_width(caca_display_t const *dp)
     87static int conio_get_display_width(caca_display_t const *dp)
    8888{
    8989    /* Fallback to a 6x10 font */
     
    9191}
    9292
    93 static unsigned int conio_get_display_height(caca_display_t const *dp)
     93static int conio_get_display_height(caca_display_t const *dp)
    9494{
    9595    /* Fallback to a 6x10 font */
     
    102102    uint32_t const *chars = (uint32_t const *)cucul_get_canvas_chars(dp->cv);
    103103    uint32_t const *attrs = (uint32_t const *)cucul_get_canvas_attrs(dp->cv);
    104     unsigned int width = cucul_get_canvas_width(dp->cv);
    105     unsigned int height = cucul_get_canvas_height(dp->cv);
    106     unsigned int n;
     104    int width = cucul_get_canvas_width(dp->cv);
     105    int height = cucul_get_canvas_height(dp->cv);
     106    int n;
    107107
    108108    for(n = height * width; n--; )
Note: See TracChangeset for help on using the changeset viewer.