diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-02 09:19:17 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-02 09:19:17 +0100 |
| commit | 0b0067cb0a8db5ea5178501a12aacdef436a9845 (patch) | |
| tree | 362322b45ffde32346351dfa0710d3a470dd6e88 /tools/spectool.cc | |
| parent | 275fe655fd7272edd9fa49439d47f449231ce445 (diff) | |
feat(platform): Fix high-DPI scaling and add resolution option
- Fixed a 'squished' viewport bug on high-DPI (Retina) displays by querying the framebuffer size in pixels instead of using the window size in points.
- Centralized window dimension management within the platform layer.
- Added a '--resolution WxH' command-line option to allow specifying a custom window size at startup. This option is stripped in STRIP_ALL builds.
- Updated all test and tool executables to use the new platform API.
Diffstat (limited to 'tools/spectool.cc')
| -rw-r--r-- | tools/spectool.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/spectool.cc b/tools/spectool.cc index 80a970e..dfb00de 100644 --- a/tools/spectool.cc +++ b/tools/spectool.cc @@ -131,7 +131,7 @@ int play_spec(const char* in_path) { fread(spec_data.data(), sizeof(float), spec_data.size(), f_in); fclose(f_in); - platform_init_window(false); + platform_init_window(false, nullptr, nullptr); audio_init(); audio_start(); Spectrogram spec; |
