Changeset 3569 for libcaca


Ignore:
Timestamp:
Jul 24, 2009, 8:48:42 AM (10 years ago)
Author:
Sam Hocevar
Message:

Mark the whole canvas as dirty when a dirty rectangle aware driver is
attached to it.

Location:
libcaca/trunk/caca/driver
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/driver/ncurses.c

    r3494 r3569  
    301301        }
    302302
     303    caca_add_dirty_rect(dp->cv, 0, 0, dp->cv->width, dp->cv->height);
    303304    dp->resize.allow = 1;
    304305    caca_set_canvas_size(dp->cv, COLS, LINES);
  • libcaca/trunk/caca/driver/slang.c

    r3494 r3569  
    176176#endif
    177177
     178    caca_add_dirty_rect(dp->cv, 0, 0, dp->cv->width, dp->cv->height);
    178179    dp->resize.allow = 1;
    179180    caca_set_canvas_size(dp->cv, SLtt_Screen_Cols, SLtt_Screen_Rows);
  • libcaca/trunk/caca/driver/vga.c

    r3494 r3569  
    7373    outb(tmp, 0x3d5);
    7474
    75     /* We don't have much choice */
     75    caca_add_dirty_rect(dp->cv, 0, 0, dp->cv->width, dp->cv->height);
    7676    dp->resize.allow = 1;
    77     caca_set_canvas_size(dp->cv, 80, 25);
     77    caca_set_canvas_size(dp->cv, 80, 25); /* We don't have much choice */
    7878    dp->resize.allow = 0;
    7979
  • libcaca/trunk/caca/driver/x11.c

    r3510 r3569  
    8888#endif
    8989
     90    caca_add_dirty_rect(dp->cv, 0, 0, dp->cv->width, dp->cv->height);
    9091    dp->resize.allow = 1;
    9192    caca_set_canvas_size(dp->cv, width ? width : 80, height ? height : 32);
Note: See TracChangeset for help on using the changeset viewer.