Changeset 923


Ignore:
Timestamp:
May 2, 2006, 8:26:02 PM (14 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Fixed error in tutorial, updated caca_get_event() doc
Location:
libcaca/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/DotNet/test.cs

    r922 r923  
    5151
    5252        Event e = new Event();
     53        int startTime = kk.getRendertime();
    5354        while(kk.getEvent(Event.type.KEY_RELEASE, e, 10) == 0)
    5455          {
    5556          kk.Refresh();
    56           Console.WriteLine("Render time : {0}", kk.getRendertime());
     57          Console.WriteLine("Render time : {0}", kk.getRendertime()-startTime);
    5758          }
    5859
  • libcaca/trunk/caca/event.c

    r859 r923  
    5858 *  \param dp The libcaca graphical context.
    5959 *  \param event_mask Bitmask of requested events.
    60  *  \param timeout A timeout value in microseconds
     60 *  \param timeout A timeout value in microseconds, -1 for blocking behaviour
    6161 *  \param ev A pointer to a caca_event structure, or NULL.
    6262 *  \return 1 if a matching event was received, or 0 if the wait timeouted.
  • libcaca/trunk/doc/tutorial.dox

    r836 r923  
    2222    cucul_putstr(cv, 0, 0, "This is a message");
    2323    /* Refresh display */
    24     caca_refresh_display();
     24    caca_refresh_display(dp);
    2525    /* Wait for a key press event */
    2626    caca_get_event(dp, CACA_EVENT_KEY_PRESS, &ev, -1);
Note: See TracChangeset for help on using the changeset viewer.