correct window size in banked vbe, and added doublebuffered test
[vidsys] / vidsys.c
index 427dbb5..3a88f9c 100644 (file)
--- a/vidsys.c
+++ b/vidsys.c
@@ -195,7 +195,10 @@ void vid_getpal(int idx, int count, struct vid_color *col)
        cur_mode->ops.getpal(idx, count, col);
 }
 
-void vid_blitfb(void *fb, int vsync)
+void vid_blitfb(void *fb, int pitch)
 {
-       cur_mode->ops.blitfb(fb, vsync);
+       if(pitch <= 0) {
+               pitch = cur_mode->pitch;
+       }
+       cur_mode->ops.blitfb(fb, pitch);
 }