Skip to content

Commit

Permalink
Merge branch 'floooh:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiopolimeni authored Jan 29, 2022
2 parents fdedbdb + 1f3d3a8 commit 7594925
Show file tree
Hide file tree
Showing 3 changed files with 149 additions and 88 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
## Updates

- **28-Jan-2022**: some window size behaviour changes in sokol_app.h.
- Asking for a default-sized window (via sapp_desc.width/height = 0) now
behaves a bit differently on desktop platforms. Previously this set the
window size to 640x480, now a default window covers more screen area:
- on Windows CW_USEDEFAULT will be used for the size
- on macOS and Linux, the window size will be 4/5 of the
display size
- no behaviour changes on other platforms
- On Windows and Linux, the window is now centered (in a later update,
more control over the initial window position, and new functions for
positioning and sizing might be provided)
- On Windows, when toggling between windowed and fullscreen, the
window position and size will now be restored (on other platforms
this already happened automatically through the window system)
- On all desktop platforms if an application starts in fullscreen and
then is toggled back to windowed, the window will now be of the
expected size (provided in sapp_desc.width/height)

- **20-Jan-2022**:
- sokol_audio.h: A compatibility fix in the sokol_audio.h WASAPI backend (Windows): On
some configs the IAudioClient::Initialize() call could fail because
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading

0 comments on commit 7594925

Please sign in to comment.