suxinde2009 / isgl3d

Automatically exported from code.google.com/p/isgl3d
Other
0 stars 0 forks source link

Retina display coordinate system #23

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.  Run app in iPhone simulator for hardware device=iPhone  
2.  Run app in iPhone simulator for hardware device=iPhone (Retina 3.5 inch)
3.  Run app on iPhone 4S

What is the expected output? What do you see instead?
The objects in the viewport should be the same with either step 1 or 2 or 3.
Instead, in step 2 or 3 I only see the lower left quadrant.

What version of the product are you using? On what operating system?

version 1.2.3 on MacBook Pro  (MacOs 10.8.2, Xcode version 4.6)  and iPhone 4S 
(Ios 6.1).

Please provide any additional information below.

In Isgl3dDirector.m at line 536 I see this line of code:
[self setContentScaleFactor:2.0f];

This results in the viewport being set to 640x960 instead of 320x480.  I 
believe that this is incorrect.  While the screen resolution of the iPhone is 
different for retina vs. non-retina, the coordinate system of programs written 
for the retina display is still 320x480.  

Original issue reported on code.google.com by Geoffrey...@gmail.com on 13 Feb 2013 at 11:09