foo
[cdmenu] / menu / src / dos / vidsys.c
index 9ee925e..c38be80 100644 (file)
@@ -199,17 +199,11 @@ void vid_getpal(int idx, int count, struct vid_color *col)
 
 void vid_blit(int x, int y, int w, int h, void *src, int pitch)
 {
-       if(pitch <= 0) {
-               pitch = cur_mode->width << 2;
-       }
        cur_mode->ops.blit(x, y, w, h, src, pitch);
 }
 
 void vid_blitfb(void *fb, int pitch)
 {
-       if(pitch <= 0) {
-               pitch = cur_mode->width << 2;
-       }
        cur_mode->ops.blitfb(fb, pitch);
 }
 
@@ -220,9 +214,6 @@ void vid_blit32(int x, int y, int w, int h, uint32_t *src, int pitch)
                return;
        }
 
-       if(pitch <= 0) {
-               pitch = cur_mode->width << 2;
-       }
        /* XXX */
 }
 
@@ -237,10 +228,6 @@ void vid_blitfb32(uint32_t *src, int pitch)
                return;
        }
 
-       if(pitch <= 0) {
-               pitch = cur_mode->width << 2;
-       }
-
        if(vid_islinear()) {
                winleft = INT_MAX;
        } else {