]> rtime.felk.cvut.cz Git - l4.git/blobdiff - l4/pkg/libsdl/lib/src/src/video/l4fb/SDL_l4fbvideowork.c
update
[l4.git] / l4 / pkg / libsdl / lib / src / src / video / l4fb / SDL_l4fbvideowork.c
index f5210ae3bc4a2744e7cb23eab196422ee9e62b20..6cc0c550e66c8d3e22ca6a0fe55cc6373bcc65d6 100644 (file)
@@ -79,8 +79,8 @@ SDL_Surface *L4FB_SetVideoMode(_THIS, SDL_Surface *current, int width, int heigh
        /* Set up the new mode framebuffer */
        current->w = width;
        current->h = height;
-       current->pitch = current->w * (bpp / 8);
-       this->hidden->pitch =  current->w * (bpp / 8);
+       current->pitch = SDL_CalculatePitch(current);
+       this->hidden->pitch =  current->pitch;
        current->flags =  SDL_PREALLOC | SDL_ASYNCBLIT;