| Summary: | Direcftb renderer viewport behaviour differs from API description. | ||
|---|---|---|---|
| Product: | SDL | Reporter: | tomaszewski.p |
| Component: | video | Assignee: | 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. | ||
Fixed, thanks! http://hg.libsdl.org/SDL/rev/7c87aa0a189f |
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.