Index: window.c
===================================================================
--- window.c	(revision 1042)
+++ window.c	(revision 1043)
@@ -127,6 +127,7 @@
 raydium_window_tx=Width;
 raydium_window_ty=Height;
 #else
+#ifndef IPHONEOS_ORIENTATION_PORTRAIT
 {
 GLsizei swap;
 swap=Width;
@@ -134,6 +135,7 @@
 Height=swap;
 }
 #endif
+#endif
 
 
 // called each frame !!
@@ -156,8 +158,10 @@
 
 // Rotate the content to fit the landscape mode on the iPhone OS.
 #ifdef IPHONEOS
+#ifndef IPHONEOS_ORIENTATION_PORTRAIT
 glRotatef(-90,0,0,1);
 #endif
+#endif
 glMatrixMode(GL_MODELVIEW);
 glLoadIdentity();