We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1751

Summary: Direcftb renderer viewport behaviour differs from API description.
Product: SDL Reporter: tomaszewski.p
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: x86_64   
OS: Linux   
Attachments: Modifies drawing and blitting functions to include viewport settings.

Description tomaszewski.p 2013-03-10 15:55:13 UTC
Created attachment 1067 [details]
Modifies drawing and blitting functions to include viewport settings.

According to API description:
SDL_RenderSetViewport - Use this function to set the drawing area for rendering on the current target.

DirectFB renderer in DirectFB_UpdateViewport function just sets clip on surface, instead of moving drawing area.

Attached patch uses set clip rectangle to move {x,y} coordinates during draw and blit operations to be compatible with API description.
Comment 1 Sam Lantinga 2013-03-11 00:10:55 UTC
Fixed, thanks!
http://hg.libsdl.org/SDL/rev/7c87aa0a189f