X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=vidsys.c;h=3a88f9c07dd7beb3f863d08cc09b9e45822af3bc;hb=6018e36555e1a02bc85e6b4212a0e70dec79a264;hp=427dbb54e18a39bd1e5564a37f445feb8c6d9d3e;hpb=1a692c742ed343d2f435759a191af6bec3d8b03e;p=vidsys diff --git a/vidsys.c b/vidsys.c index 427dbb5..3a88f9c 100644 --- 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); }