diff --git a/caca/driver/ncurses.c b/caca/driver/ncurses.c index dd1a47d..4c07528 100644 --- a/caca/driver/ncurses.c +++ b/caca/driver/ncurses.c @@ -300,6 +300,7 @@ static int ncurses_init_graphics(caca_display_t *dp) } } + caca_add_dirty_rect(dp->cv, 0, 0, dp->cv->width, dp->cv->height); dp->resize.allow = 1; caca_set_canvas_size(dp->cv, COLS, LINES); dp->resize.allow = 0; diff --git a/caca/driver/slang.c b/caca/driver/slang.c index 0002b27..fa68972 100644 --- a/caca/driver/slang.c +++ b/caca/driver/slang.c @@ -175,6 +175,7 @@ static int slang_init_graphics(caca_display_t *dp) SLtt_utf8_enable(1); #endif + caca_add_dirty_rect(dp->cv, 0, 0, dp->cv->width, dp->cv->height); dp->resize.allow = 1; caca_set_canvas_size(dp->cv, SLtt_Screen_Cols, SLtt_Screen_Rows); dp->resize.allow = 0; diff --git a/caca/driver/vga.c b/caca/driver/vga.c index dd3a78d..50154f8 100644 --- a/caca/driver/vga.c +++ b/caca/driver/vga.c @@ -72,9 +72,9 @@ static int vga_init_graphics(caca_display_t *dp) outb(0x0a, 0x3d4); outb(tmp, 0x3d5); - /* We don't have much choice */ + caca_add_dirty_rect(dp->cv, 0, 0, dp->cv->width, dp->cv->height); dp->resize.allow = 1; - caca_set_canvas_size(dp->cv, 80, 25); + caca_set_canvas_size(dp->cv, 80, 25); /* We don't have much choice */ dp->resize.allow = 0; return 0; diff --git a/caca/driver/x11.c b/caca/driver/x11.c index e34240e..4728ccf 100644 --- a/caca/driver/x11.c +++ b/caca/driver/x11.c @@ -87,6 +87,7 @@ static int x11_init_graphics(caca_display_t *dp) sscanf(geometry, "%ux%u", &width, &height); #endif + caca_add_dirty_rect(dp->cv, 0, 0, dp->cv->width, dp->cv->height); dp->resize.allow = 1; caca_set_canvas_size(dp->cv, width ? width : 80, height ? height : 32); width = caca_get_canvas_width(dp->cv);