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 1112 - retina display support
Summary: retina display support
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: ARM iOS (All)
: P2 enhancement
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-01 02:21 UTC by Vittorio Giovara
Modified: 2011-02-01 08:55 UTC (History)
0 users

See Also:


Attachments
retina display support (449 bytes, patch)
2011-02-01 02:21 UTC, Vittorio Giovara
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vittorio Giovara 2011-02-01 02:21:50 UTC
Created attachment 563 [details]
retina display support

with the attached patch, the opengles context will always use the maximum screensize available; this is particularly useful for supporting retina display on latest iphone.

please note: Apple documentation warns that using the "upscaled" gl context actually uses more memory and bandwitdh, so it might be worth to let the user decide whether to disable it or not, either with a flag or a sdl function...
Comment 1 Sam Lantinga 2011-02-01 08:55:14 UTC
Your patch is in, thanks!
http://hg.libsdl.org/SDL/rev/ec13e48ee0d9