comparison src/SDL_compat.c @ 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
comparison
equal deleted inserted replaced
1684:c4aa1a2f48f1 1685:66267c6a0b12
1257 overlay->pitches[2] = overlay->w / 2; 1257 overlay->pitches[2] = overlay->w / 2;
1258 break; 1258 break;
1259 case SDL_YUY2_OVERLAY: 1259 case SDL_YUY2_OVERLAY:
1260 case SDL_UYVY_OVERLAY: 1260 case SDL_UYVY_OVERLAY:
1261 case SDL_YVYU_OVERLAY: 1261 case SDL_YVYU_OVERLAY:
1262 overlay->pitches[0] = overlay->h * 2; 1262 overlay->pitches[0] = overlay->w * 2;
1263 break; 1263 break;
1264 } 1264 }
1265 1265
1266 overlay->hwdata->textureID = 1266 overlay->hwdata->textureID =
1267 SDL_CreateTexture(texture_format, SDL_TextureAccess_Local, w, h); 1267 SDL_CreateTexture(texture_format, SDL_TextureAccess_Local, w, h);