More general fix for bug #189
The clipping is done at a higher level, and the low level functions are passed clipped rectangles. Drivers which don't support source clipping have not been changed, so the image will be squished instead of clipped, but at least they will no longer crash when the destination rect was out of bounds. --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401650
This commit is contained in:
parent
a4f336faee
commit
0416307588
17 changed files with 150 additions and 129 deletions
|
@ -241,7 +241,7 @@ void DirectFB_UnlockYUVOverlay(_THIS, SDL_Overlay *overlay)
|
|||
surface->Unlock (surface);
|
||||
}
|
||||
|
||||
int DirectFB_DisplayYUVOverlay(_THIS, SDL_Overlay *overlay, SDL_Rect *dst)
|
||||
int DirectFB_DisplayYUVOverlay(_THIS, SDL_Overlay *overlay, SDL_Rect *src, SDL_Rect *dst)
|
||||
{
|
||||
DFBResult ret;
|
||||
DFBDisplayLayerConfig conf;
|
||||
|
|
|
@ -32,7 +32,7 @@ extern int DirectFB_LockYUVOverlay(_THIS, SDL_Overlay *overlay);
|
|||
|
||||
extern void DirectFB_UnlockYUVOverlay(_THIS, SDL_Overlay *overlay);
|
||||
|
||||
extern int DirectFB_DisplayYUVOverlay(_THIS, SDL_Overlay *overlay, SDL_Rect *dstrect);
|
||||
extern int DirectFB_DisplayYUVOverlay(_THIS, SDL_Overlay *overlay, SDL_Rect *src, SDL_Rect *dst);
|
||||
|
||||
extern void DirectFB_FreeYUVOverlay(_THIS, SDL_Overlay *overlay);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue