Ignore:
Timestamp:
Apr 22, 2006, 9:46:43 PM (15 years ago)
Author:
Sam Hocevar
Message:
  • Allow the caca_event_t *ev argument for caca_get_event() to be NULL.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/test/frames.c

    r843 r849  
    2222#endif
    2323
     24#include <stdio.h>
     25
    2426#include "cucul.h"
    2527#include "caca.h"
     
    2729int main(void)
    2830{
    29     caca_event_t ev;
    3031    cucul_canvas_t *cv;
    3132    caca_display_t *dp;
     
    5859
    5960    n = 0;
    60     while(!caca_get_event(dp, CACA_EVENT_KEY_PRESS, &ev, 0))
     61    while(!caca_get_event(dp, CACA_EVENT_KEY_PRESS, NULL, 0))
    6162    {
    6263        cucul_set_canvas_frame(cv, n % 16);
Note: See TracChangeset for help on using the changeset viewer.