| Summary: | Android : wrong size reported when not in fullscreen. | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Sylvain <sylvain.becker> |
| Component: | *don't know* | Assignee: | Sylvain <sylvain.becker> |
| Status: | WAITING --- | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | someuniquename |
| Version: | don't know | ||
| Hardware: | All | ||
| OS: | Android (All) | ||
|
Description
Sylvain
2018-10-07 13:34:36 UTC
The glitch when exiting is gone thanks to https://hg.libsdl.org/SDL/rev/85c6aa0836d8 Maybe something similar when going to foreground/background could be done ? do you have that glitch too ? Is this taken care of now, with the other changes you've made? I am not sure ... With SDL_WINDOW_FULLSCREEN: I see first: 06-13 09:43:38.548 2781 2781 V SDL : Window size: 1080x2147 06-13 09:43:38.548 2781 2781 V SDL : Device size: 1080x2340 Then 06-13 09:43:39.112 2781 2781 V SDL : Window size: 1080x2265 06-13 09:43:39.112 2781 2781 V SDL : Device size: 1080x2340 Without SDL_WINDOW_FULLSCREEN: only one: 06-13 09:56:15.543 4570 4570 V SDL : Window size: 1080x2147 06-13 09:56:15.543 4570 4570 V SDL : Device size: 1080x2340 Device Size is the one exposed in DisplayMode. I usually use it to create the SDL_Window, so I am wrong. I should in fact use afterwards SDL_GetWindowSize() to get the size of the created window. And this is working in non FULLSCREEN. But in FULLSCREEN (so immersive), I should also always check for RESIZE_EVENT which is problematic to get , app are not necessarily designed to respond to a resize of width/heigth (eg be resizeable). Also the first SDL_GetWindowSize() will return the size of non immersive because it's called early. |