changeset 1685:66267c6a0b12 SDL-1.3

Fixed YUV overlay crash
author Sam Lantinga <slouken@libsdl.org>
date Sun, 18 Jun 2006 07:31:45 +0000
parents c4aa1a2f48f1
children 8d7fecceb9ef
files src/SDL_compat.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/SDL_compat.c	Sun Jun 18 06:35:41 2006 +0000
+++ b/src/SDL_compat.c	Sun Jun 18 07:31:45 2006 +0000
@@ -1259,7 +1259,7 @@
     case SDL_YUY2_OVERLAY:
     case SDL_UYVY_OVERLAY:
     case SDL_YVYU_OVERLAY:
-        overlay->pitches[0] = overlay->h * 2;
+        overlay->pitches[0] = overlay->w * 2;
         break;
     }