소스 검색

* Assume the VGA screen is 320x200 and really resize the cucul canvas to

80x25 upon initialisation.
tags/v0.99.beta14
Sam Hocevar sam 19 년 전
부모
커밋
e332cf1bed
1개의 변경된 파일7개의 추가작업 그리고 4개의 파일을 삭제
  1. +7
    -4
      caca/driver_vga.c

+ 7
- 4
caca/driver_vga.c 파일 보기

@@ -75,6 +75,9 @@ static int vga_init_graphics(caca_t *kk)
outb(0x0a, 0x3d4);
outb(tmp, 0x3d5);

/* We don't have much choice */
_cucul_set_size(kk->qq, 80, 25);

return 0;
}

@@ -100,14 +103,14 @@ static int vga_set_window_title(caca_t *kk, char const *title)

static unsigned int vga_get_window_width(caca_t *kk)
{
/* Fallback to a 6x10 font */
return kk->qq->width * 6;
/* Fallback to a 320x200 screen */
return 320;
}

static unsigned int vga_get_window_height(caca_t *kk)
{
/* Fallback to a 6x10 font */
return kk->qq->height * 10;
/* Fallback to a 320x200 screen */
return 200;
}

static void vga_display(caca_t *kk)


불러오는 중...
취소
저장