added page flipping/scrolling VBE calls
[dosrtxon] / src / 3dgfx.c
index 64fd604..a642c1e 100644 (file)
@@ -117,6 +117,13 @@ void g3d_framebuffer(int width, int height, void *pixels)
        g3d_viewport(0, 0, width, height);
 }
 
+/* set the framebuffer pointer, without resetting the size */
+void g3d_framebuffer_addr(void *pixels)
+{
+       st->pixels = pixels;
+       pfill_fb.pixels = pixels;
+}
+
 void g3d_viewport(int x, int y, int w, int h)
 {
        st->vport[0] = x;