return 0;
}
-void vid_vsync(void)
+int vid_islinear(void)
{
- vga_vsync();
+ return !vid_isbanked();
+}
+
+int vid_isbanked(void)
+{
+ return cur_mode->win_size && vid_vmem < (void*)0x100000;
}
void vid_setpal(int idx, int count, const 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);
+}