dmuratshin 8 years ago
parent
commit
6f2880edcf
1 changed files with 5 additions and 0 deletions
  1. 5 0
      oxygine/src/core/oxygine.cpp

+ 5 - 0
oxygine/src/core/oxygine.cpp

@@ -385,6 +385,11 @@ namespace oxygine
             //ios bug workaround
             //flags &= ~SDL_WINDOW_FULLSCREEN;
 #endif
+            
+#if TARGET_OS_IPHONE || defined(__ANDROID__)
+            desc.w = -1;
+            desc.h = -1;
+#endif
 
             log::messageln("creating window %d %d", desc.w, desc.h);