Ignore:
Timestamp:
May 15, 2009, 1:28:41 PM (11 years ago)
Author:
Pascal Terjan
Message:
  • Skip useless some blits
File:
1 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/src/screens.c

    r3453 r3463  
    191191        update_windows_props(screen_list);
    192192
    193     caca_set_color_ansi(screen_list->cv, CACA_DEFAULT, CACA_DEFAULT);
    194     caca_clear_canvas(screen_list->cv);
     193    if(screen_list->changed)
     194    {
     195        caca_set_color_ansi(screen_list->cv, CACA_DEFAULT, CACA_DEFAULT);
     196        caca_clear_canvas(screen_list->cv);
     197    }
    195198    caca_set_color_ansi(screen_list->cv, CACA_LIGHTRED, CACA_BLACK);
    196199
    197200    for(i = screen_list->count - 1; i >=0; i--)
    198201    {
    199         if(i!=screen_list->pty && screen_list->screen[i]->visible)
     202        if(i!=screen_list->pty && screen_list->screen[i]->visible &&
     203           (screen_list->screen[i]->changed || screen_list->changed || screen_list->wm_type==WM_CARD))
    200204        {
    201205            caca_blit(screen_list->cv,
     
    219223    }
    220224
    221     caca_blit(screen_list->cv,
    222                screen_list->screen[screen_list->pty]->x,
    223                screen_list->screen[screen_list->pty]->y,
    224                screen_list->screen[screen_list->pty]->cv, NULL);
     225    if(screen_list->screen[screen_list->pty]->changed || screen_list->changed || screen_list->wm_type==WM_CARD)
     226        caca_blit(screen_list->cv,
     227                  screen_list->screen[screen_list->pty]->x,
     228                  screen_list->screen[screen_list->pty]->y,
     229                  screen_list->screen[screen_list->pty]->cv, NULL);
    225230
    226231    if(screen_list->screen[screen_list->pty]->bell)
Note: See TracChangeset for help on using the changeset viewer.