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 - Direcftb renderer viewport behaviour differs from API description.
Summary: Direcftb renderer viewport behaviour differs from API description.
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: x86_64 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-10 15:55 UTC by tomaszewski.p
Modified: 2013-03-11 00:10 UTC (History)
0 users

See Also:


Attachments
Modifies drawing and blitting functions to include viewport settings. (4.19 KB, patch)
2013-03-10 15:55 UTC, tomaszewski.p
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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