Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Reminder] Provide dummy launch images for iOS. #95

Open
velkyel opened this issue Dec 7, 2021 · 2 comments
Open

[Reminder] Provide dummy launch images for iOS. #95

velkyel opened this issue Dec 7, 2021 · 2 comments

Comments

@velkyel
Copy link

velkyel commented Dec 7, 2021

hello,

why fullscreen on ios is not real fullscreen? (sokol_app has same behaviour)

C13AA480-03CF-46A1-80F0-349D85A2D65D

to triangle-metal.c I have added:

state.pass_action = (sg_pass_action){.colors[0] = {.action = SG_ACTION_CLEAR, .value = {0.3f, 0.3f, 0.3f, 1.0f}}};

@floooh
Copy link
Owner

floooh commented Dec 8, 2021

No idea so far, the sokol_app.h iOS framebuffer uses the screen dimensions returned by UIScreen.mainScreen.bounds:

https://github.com/floooh/sokol/blob/dfe57a9d8d765dc5e689d238127558dafa72b7a3/sokol_app.h#L3727

My current guess is that it's a missing setting in Info.plist which causes the application to start in some sort of "compatibility mode" so the application would also work on older iPhones.

@floooh
Copy link
Owner

floooh commented Dec 8, 2021

Googling around it seems that an application needs to provide launch images in certain resolutions, and iOS will use the launch image sizes to decide what screen size to report to the application (so this seems indeed to be a backward compatibility hack):

https://developer.apple.com/forums/thread/5572

Not much that sokol_app.h can do in this case. But I'll try to come up with a solution for the sokol-samples, maybe by copying dummy launch images via a cmake custom job. The missing launch images also have been triggering annoying warnings in Xcode.

@floooh floooh changed the title ios fullscreen Provide dummy launch images for iOS. Dec 8, 2021
@floooh floooh changed the title Provide dummy launch images for iOS. [Reminder] Provide dummy launch images for iOS. Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants