Game Development Community

Problem getting the render output to display full screen in the iPhone Simulator...

by Dave Calabrese · in iTorque 2D · 04/15/2009 (3:37 pm) · 4 replies

I'm having an incredibly odd problem where the render output does not display 'full screen'. This is easier to show than it is to explain, so please check out this image: www.forbidden-zodiac.com/photo.jpg

(Yes, I took a photo of the computer monitor with my iPhone rather than doing a screenshot... it seemed convenient at the time, lol.)

Any thoughts on what could possibly cause this?

- Dave Calabrese
Gaslight Studios, Inc.

#1
04/15/2009 (4:04 pm)
It looks like you have a mismatch with you landscape/portrait settings, and your resolution. i.e. You are Clearly in Portrait mode, but your view looks landscape(480 x 320).

Check that your commonConfig.xml and make your resolution match the one you want. Also, make sure you don't have $pref::iPhone::ScreenOrientation set to anything, since that's the variable that the CommonConfig adjusts.
#2
04/15/2009 (4:52 pm)
I have commented out the following line in defaultPrefs.cs to make sure that commonConfig.xml had the control:

$pref::iPhone::ScreenOrientation = "Portrait";

I then verified that in commonConfig.xml, the orientation was set to Portrait. Finally, I did a project-wide search for "480 320", and found one usage of it, in TestGuiS.gui, which was the Extent...

%guiContent = new GuiControl(testGUIs) {
   canSaveDynamicFields = "0";
   isContainer = "1";
   Profile = "GuiDefaultProfile";
   HorizSizing = "right";
   VertSizing = "bottom";
   Position = "0 0";
   Extent = "480 320";
   MinExtent = "8 2";
   canSave = "1";
   Visible = "1";
   hovertime = "1000";

To be safe, even though I don't think this is being used, I changed that to 320 480.

However, the problem still persists with no changes...

- Dave Calabrese
Gaslight Studios, Inc.
#3
04/15/2009 (9:17 pm)
The resolution is also set in commonConfig.xml.
When you debug from the simulator, check the GDB output for a line like: "Setting screen mode to WIDTHxHEIGHTxBPP" and see what the values are , it should say 320x480x32, but it looks that somewhere along the line, something is setting it to a different set of values.
#4
04/15/2009 (9:42 pm)
I got it! Okay, as dumb as this sounds - I did not realize that the .DSO files all had to be compiled. Yes yes, I know I read they had to be compiled for running on the actual iPhone, however I thought it would work in the simulator without being compiled, lol.

Anyway! You pointing out some details there helped me to determine that the DSOs needed to be all pre-compiled, got those in there, and everything now works great. Thank you very much for your help, Mat Valadez!

- Dave Calabrese
Gaslight Studios