core: window size not restored on leaving .fullscreen to .windowed. #1153

Open
opened 2024-01-29 06:54:18 +00:00 by JohnathanBurchill · 0 comments
JohnathanBurchill commented 2024-01-29 06:54:18 +00:00 (Migrated from github.com)

With

const core = @import("mach-core");

and calling within update()

core.setDisplayMode(.fullscreen);
core.setDisplayMode(.windowed);

the window does not return to its original size. The mach-core source Core.zig stores the window size prior to entering fullscreen in last_windowed_size, but restores the size upon entering windowed mode using last_size in self.window.setMonitor(...).

With ```Zig const core = @import("mach-core"); ``` and calling within `update()` ```Zig core.setDisplayMode(.fullscreen); core.setDisplayMode(.windowed); ``` the window does not return to its original size. The mach-core source Core.zig stores the window size prior to entering fullscreen in last_windowed_size, but restores the size upon entering windowed mode using last_size in self.window.setMonitor(...).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
hexops/mach#1153
No description provided.