X-Git-Url: https://deadsoftware.ru/gitweb?p=flatwaifu.git;a=blobdiff_plain;f=src%2Fsoft%2Fvga.c;h=d9c77e1e8dea01a24339a990bd5f0da209f503bc;hp=ef97ca7afa9103bae141e77173ba343e3c84290d;hb=8191e06a991c4733abb2166b14934be4e3ea8ed7;hpb=0ece348582e8b4fceee9a3240c9f454ac84b2107 diff --git a/src/soft/vga.c b/src/soft/vga.c index ef97ca7..d9c77e1 100644 --- a/src/soft/vga.c +++ b/src/soft/vga.c @@ -40,8 +40,8 @@ byte bright[256]; byte mixmap[256][256]; byte clrmap[256*12]; -static byte *buffer; -static int buf_w, buf_h, pitch; +byte *buffer; +int buf_w, buf_h, pitch; static int offx, offy; static int cx1, cx2, cy1, cy2; static byte flametab[16] = { @@ -64,24 +64,6 @@ vgaimg *V_loadvgaimg (char *name) { return V_getvgaimg(F_getresid(name)); } -short V_init (void) { - int flags = fullscreen ? SYSTEM_USE_FULLSCREEN : 0; - int res = Y_set_videomode(SCRW, SCRH, flags); - if (res == 0) { - ERR_failinit("Unable to set video mode"); - } - Y_get_buffer(&buffer, &buf_w, &buf_h, &pitch); - return 0; -} - -void V_done (void) { - buffer = NULL; - buf_w = 0; - buf_h = 0; - pitch = 0; - Y_unset_videomode(); -} - static void draw_rect (int x, int y, int w, int h, int c) { int i; int x0 = max(x, cx1); @@ -241,7 +223,3 @@ void V_remap_rect (int x, int y, int w, int h, byte *cmap) { for (cy=y; cy