Browse Source

Merge pull request #72 from bslack/next

Modified the size the game renders at
Sean Paul Taylor 13 năm trước cách đây
mục cha
commit
8bf4cca0c7
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      gameplay/src/PlatformiOS.mm

+ 2 - 2
gameplay/src/PlatformiOS.mm

@@ -20,8 +20,8 @@ using namespace std;
 using namespace gameplay;
 
 // UIScreen bounds are provided as if device was in portrait mode Gameplay defaults to landscape
-extern const int WINDOW_WIDTH  = [[UIScreen mainScreen] bounds].size.height;
-extern const int WINDOW_HEIGHT = [[UIScreen mainScreen] bounds].size.width;
+extern const int WINDOW_WIDTH  = [[UIScreen mainScreen] bounds].size.height * [[UIScreen mainScreen] scale];
+extern const int WINDOW_HEIGHT = [[UIScreen mainScreen] bounds].size.width * [[UIScreen mainScreen] scale];
 
 @class AppDelegate;
 @class View;