Browse Source

Update rcore_ios.c

pull/3880/head
blueloveTH 8 months ago
parent
commit
1de43bfb49
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      src/platforms/rcore_ios.c

+ 9
- 0
src/platforms/rcore_ios.c View File

@ -549,6 +549,15 @@ int InitPlatform(void)
}
else
{
CORE.Window.display.width = [[UIScreen mainScreen] nativeBounds].size.width;
CORE.Window.display.height = [[UIScreen mainScreen] nativeBounds].size.height;
if(CORE.Window.screen.width == 0){
CORE.Window.screen.width = [[UIScreen mainScreen] bounds].size.width;
}
if(CORE.Window.screen.height == 0){
CORE.Window.screen.height = [[UIScreen mainScreen] bounds].size.height;
}
CORE.Window.render.width = CORE.Window.screen.width;
CORE.Window.render.height = CORE.Window.screen.height;
CORE.Window.currentFbo.width = CORE.Window.render.width;

Loading…
Cancel
Save