diff options
| author | Andre Weissflog <floooh@gmail.com> | 2022-01-28 16:32:14 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-28 16:32:14 +0100 |
| commit | d639860d9e8a0fde09bf9afd310ba738a8f1e383 (patch) | |
| tree | b0b9cf2362469e7c56a4133b27d203df4633a9e4 /README.md | |
| parent | 67c321cdbb9c46e2944e77ca7a4ba3a611b80555 (diff) | |
Better default-window-size handling for desktop platforms. (#623)
If sapp_desc.width/height is 0:
- on Windows: uses CW_USEDEFAULT for the window size, also centers the window
- on macOS: sets window size to 4/5 of display size (window was already centered before)
- on Linux: sets window size to 4/5 of display size (and centers the window)
- no functional changes on the other platforms.
Some additional changes for fullscreen vs windowed behaviour on Windows:
- stores and restores the window pos and size when switching between windowed and fullscreen
- if the app starts in fullscreen, uses sapp_desc.width/height when switching back to windowed
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -6,8 +6,8 @@ Simple [STB-style](https://github.com/nothings/stb/blob/master/docs/stb_howto.txt) cross-platform libraries for C and C++, written in C. -[**See what's new**](https://github.com/floooh/sokol/blob/master/CHANGELOG.md) (**22-Jan-2022** compatibility fix in -the sokol_audio.h WASAPI backend) +[**See what's new**](https://github.com/floooh/sokol/blob/master/CHANGELOG.md) (**28-Jan-2022** sokol_app.h: some non-breaking +default-window-size behaviour changes on desktop platforms) ## Examples and Related Projects |