X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosrtxon;a=blobdiff_plain;f=src%2F3dgfx.c;fp=src%2F3dgfx.c;h=a642c1e42da16918510da9dcdf6c1770021a167b;hp=64fd604cdc513fc4031f4bd1b971906764810c7d;hb=d7444ccbe3cb732d7259f134ee5a21d24160cc56;hpb=d6acf0b82bd026565f6b26bb00e42b4c126598dd diff --git a/src/3dgfx.c b/src/3dgfx.c index 64fd604..a642c1e 100644 --- a/src/3dgfx.c +++ b/src/3dgfx.c @@ -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;