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 2382 - Round or truncate issue when resizing the window.
Summary: Round or truncate issue when resizing the window.
Status: ASSIGNED
Alias: None
Product: SDL
Classification: Unclassified
Component: render (show other bugs)
Version: HG 2.1
Hardware: x86_64 Mac OS X 10.6
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-04 15:06 UTC by valentin.soudier
Modified: 2017-08-14 14:07 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description valentin.soudier 2014-02-04 15:06:31 UTC
Hi. 

The "SDL-generic" viewport resizing have a round or truncate issue. It isn't critical, but I post it here because every game maker will have the problem. 

If you resize the window and let SDL adjust the viewport, there will be some round problem visible here ==> http://www.youtube.com/watch?v=QUUTCma9HNI 
The original game size is 320x240, and the default window size is 640x480 : there is no problem. If I resize to a non-multiple size (maximize window in my case), some tiles are wrong placed/have a wrong size because of the round/truncate issue.
Comment 1 Sam Lantinga 2017-08-14 14:07:01 UTC
Marking for API review in SDL 2.1, thanks!