summaryrefslogtreecommitdiff
path: root/src/platform/stub_platform.cc
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-03-26 07:34:54 +0100
committerskal <pascal.massimino@gmail.com>2026-03-26 07:34:54 +0100
commitf7a34b7401695a4a9137889eb4eb322694f8c5c9 (patch)
tree19e165da848a412641312b2d8e6fd4d49266732b /src/platform/stub_platform.cc
parentaf70b169c3d65c053ed80dd85e85304dfa78dc35 (diff)
fix(src/platform): code review cleanup
- platform.h: deduplicate str_view/label_view/platform_wgpu_wait_any (were identical in WIN32 and default branches); remove dead platform_wgpu_set_error_callback and its never-used callback typedefs - platform.cc: remove glfwSetWindowUserPointer(nullptr) + stale comment block; drop if-guard on user pointer fixup in platform_poll; remove redundant aspect_ratio recompute (framebuffer_size_callback owns it) - headless_platform.cc: write g_virtual_time back to state->time in platform_poll; remove never-set g_should_close variable - stub_types.h: remove dead platform_wgpu_set_error_callback and callback typedefs; add comment on non-empty WGPURenderPassColorAttachment handoff(Gemini): platform layer cleaned up, no behaviour change
Diffstat (limited to 'src/platform/stub_platform.cc')
-rw-r--r--src/platform/stub_platform.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/platform/stub_platform.cc b/src/platform/stub_platform.cc
index 61473a0..a177ab3 100644
--- a/src/platform/stub_platform.cc
+++ b/src/platform/stub_platform.cc
@@ -11,14 +11,13 @@
struct GLFWwindow {};
PlatformState platform_init(bool fullscreen, int width, int height) {
- (void)fullscreen;
PlatformState state = {};
state.width = width;
state.height = height;
state.aspect_ratio = (float)width / (float)height;
state.window = nullptr;
state.time = 0.0;
- state.is_fullscreen = false;
+ state.is_fullscreen = fullscreen;
return state;
}