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