Przeglądaj źródła

Mark the whole canvas as dirty when a dirty rectangle aware driver is

attached to it.
tags/v0.99.beta17
Sam Hocevar sam 15 lat temu
rodzic
commit
1d60711ac4
4 zmienionych plików z 5 dodań i 2 usunięć
  1. +1
    -0
      caca/driver/ncurses.c
  2. +1
    -0
      caca/driver/slang.c
  3. +2
    -2
      caca/driver/vga.c
  4. +1
    -0
      caca/driver/x11.c

+ 1
- 0
caca/driver/ncurses.c Wyświetl plik

@@ -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;


+ 1
- 0
caca/driver/slang.c Wyświetl plik

@@ -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;


+ 2
- 2
caca/driver/vga.c Wyświetl plik

@@ -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;


+ 1
- 0
caca/driver/x11.c Wyświetl plik

@@ -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);


Ładowanie…
Anuluj
Zapisz