Changeset 3602 for libcaca


Ignore:
Timestamp:
Aug 2, 2009, 1:09:10 PM (10 years ago)
Author:
Sam Hocevar
Message:

Make conio_refresh() play nicer with the resources when the machine is slow.

File:
1 edited

Legend:

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

    r3601 r3602  
    6565    /* FIXME: must work within the currently active text window */
    6666    caca_fill_box(cv, caca_wherex(cv), caca_wherey(cv),
    67                   caca_get_width(cv), caca_wherey(cv), ' ');
     67                  caca_get_canvas_width(cv), caca_wherey(cv), ' ');
    6868
    6969    conio_refresh();
     
    493493    if(refresh_ticks > 10000)
    494494    {
    495         refresh_ticks -= 10000;
    496495        caca_refresh_display(dp);
     496        _caca_getticks(&refresh_timer);
     497        refresh_ticks = 0;
    497498    }
    498499}
Note: See TracChangeset for help on using the changeset viewer.