Ignore:
Timestamp:
Apr 19, 2008, 9:25:47 PM (12 years ago)
Author:
Sam Hocevar
Message:
  • Get rid of the last long types in the API.
  • Use size_t and ssize_t where appropriate.
Location:
libcaca/trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/src/aafire.c

    r2299 r2304  
    4646static cucul_dither_t *cucul_dither;
    4747static char *bitmap;
    48 static int pause = 0;
     48static int paused = 0;
    4949#else
    5050static aa_context *context;
     
    213213  char *bitmap = aa_image (context);
    214214#else
    215   if(pause)
    216     goto paused;
     215  if(paused)
     216    goto _paused;
    217217#endif
    218218
     
    238238  firemain ();
    239239#ifdef LIBCACA
    240 paused:
     240_paused:
    241241  cucul_dither_bitmap(cv, 0, 0, cucul_get_canvas_width(cv),
    242242                      cucul_get_canvas_height(cv), cucul_dither, bitmap);
     
    280280                case CACA_KEY_CTRL_Z:
    281281                case CACA_KEY_ESCAPE: return;
    282                 case ' ': pause = !pause;
     282                case ' ': paused = !paused;
    283283            }
    284284        }
  • libcaca/trunk/src/cacademo.c

    r2299 r2304  
    7373    static cucul_canvas_t *frontcv, *backcv, *mask;
    7474
    75     int demo, next = -1, pause = 0, next_transition = DEMO_FRAMES;
     75    int demo, next = -1, paused = 0, next_transition = DEMO_FRAMES;
    7676    unsigned int i;
    7777    int tmode = cucul_rand(0, TRANSITION_COUNT);
     
    118118                    goto end;
    119119                case ' ':
    120                     pause = !pause;
     120                    paused = !paused;
    121121                    break;
    122122                case '\r':
     
    133133                                    cucul_get_canvas_height(frontcv));
    134134
    135         if(pause)
    136             goto paused;
     135        if(paused)
     136            goto _paused;
    137137
    138138        /* Update demo's data */
     
    160160
    161161        frame++;
    162 paused:
     162_paused:
    163163        /* Render main demo's canvas */
    164164        fn[demo](RENDER, frontcv);
Note: See TracChangeset for help on using the changeset viewer.