notaz.gp2x.de
/
sdl_omap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Hi Sam
[sdl_omap.git]
/
src
/
video
/
x11
/
SDL_x11yuv.c
diff --git
a/src/video/x11/SDL_x11yuv.c
b/src/video/x11/SDL_x11yuv.c
index
0372c5a
..
f3c2a30
100644
(file)
--- a/
src/video/x11/SDL_x11yuv.c
+++ b/
src/video/x11/SDL_x11yuv.c
@@
-330,8
+330,8
@@
SDL_Overlay *X11_CreateYUVOverlay(_THIS, int width, int height, Uint32 format, S
#ifdef PITCH_WORKAROUND
if ( hwdata->image != NULL && hwdata->image->pitches[0] != (width*bpp) ) {
/* Ajust overlay width according to pitch */
#ifdef PITCH_WORKAROUND
if ( hwdata->image != NULL && hwdata->image->pitches[0] != (width*bpp) ) {
/* Ajust overlay width according to pitch */
- XFree(hwdata->image);
width = hwdata->image->pitches[0] / bpp;
width = hwdata->image->pitches[0] / bpp;
+ XFree(hwdata->image);
hwdata->image = SDL_NAME(XvShmCreateImage)(GFX_Display, xv_port, format,
0, width, height, yuvshm);
}
hwdata->image = SDL_NAME(XvShmCreateImage)(GFX_Display, xv_port, format,
0, width, height, yuvshm);
}