Ignore:
Timestamp:
Mar 7, 2006, 12:01:59 AM (14 years ago)
Author:
Sam Hocevar
Message:
  • Split caca/graphics.c into driver-specific files. Resize is currently broken, and event handling is not yet in the driver-specific files, but I will of course fix that later.
File:
1 edited

Legend:

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

    r536 r539  
    188188
    189189#if defined(USE_SLANG)
    190     if(kk->driver != CACA_DRIVER_SLANG)
     190    if(kk->driver.driver != CACA_DRIVER_SLANG)
    191191#endif
    192192#if defined(USE_NCURSES)
    193     if(kk->driver != CACA_DRIVER_NCURSES)
     193    if(kk->driver.driver != CACA_DRIVER_NCURSES)
    194194#endif
    195195    return event;
     
    257257#if defined(USE_X11)
    258258    /* The X11 event check routine */
    259     if(kk->driver == CACA_DRIVER_X11)
     259    if(kk->driver.driver == CACA_DRIVER_X11)
    260260    {
    261261        XEvent xevent;
     
    373373#endif
    374374#if defined(USE_NCURSES)
    375     if(kk->driver == CACA_DRIVER_NCURSES)
     375    if(kk->driver.driver == CACA_DRIVER_NCURSES)
    376376    {
    377377        int intkey;
     
    557557#endif
    558558#if defined(USE_SLANG)
    559     if(kk->driver == CACA_DRIVER_SLANG)
     559    if(kk->driver.driver == CACA_DRIVER_SLANG)
    560560    {
    561561        int intkey;
     
    640640#endif
    641641#if defined(USE_CONIO)
    642     if(kk->driver == CACA_DRIVER_CONIO)
     642    if(kk->driver.driver == CACA_DRIVER_CONIO)
    643643    {
    644644        if(!_conio_kbhit())
     
    652652#endif
    653653#if defined(USE_WIN32)
    654     if(kk->driver == CACA_DRIVER_WIN32)
     654    if(kk->driver.driver == CACA_DRIVER_WIN32)
    655655    {
    656656        INPUT_RECORD rec;
     
    726726#endif
    727727#if defined(USE_GL)
    728     if(kk->driver == CACA_DRIVER_GL)
     728    if(kk->driver.driver == CACA_DRIVER_GL)
    729729    {
    730730        glutMainLoopEvent();
Note: See TracChangeset for help on using the changeset viewer.