X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=vidsys.c;h=3a88f9c07dd7beb3f863d08cc09b9e45822af3bc;hb=HEAD;hp=d60c5f2293228c80f46881a0f1874dcf61537134;hpb=696108c29db9a5271f45decee642a4ac72c3367d;p=vidsys diff --git a/vidsys.c b/vidsys.c index d60c5f2..3a88f9c 100644 --- 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); +}