Ignore:
Timestamp:
Nov 21, 2003, 3:34:07 PM (17 years ago)
Author:
Sam Hocevar
Message:
  • TODO: + A few updates.
  • src/blit.c: + Split blit() into caca_create_bitmap() and caca_draw_bitmap(). + Started removing hardcoded bitmask and pitch values.
  • examples/demo.c: + Do something with mouse clicks.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/examples/demo.c

    r202 r204  
    184184            caca_refresh();
    185185        }
     186        else if(event & CACA_EVENT_MOUSE_CLICK)
     187        {
     188            display_menu();
     189            caca_set_color(CACA_COLOR_RED);
     190            caca_putstr((event & 0xff00) >> 8, event & 0xff, "|\\");
     191            caca_refresh();
     192        }
    186193
    187194        if(demo)
     
    486493static void demo_blit(void)
    487494{
     495#if 0
    488496    caca_blit(6, 4, caca_get_width() - 6, caca_get_height() - 4,
    489497              pixels, bufx, bufy);
    490 }
    491 
     498#endif
     499}
     500
Note: See TracChangeset for help on using the changeset viewer.