From f7a34b7401695a4a9137889eb4eb322694f8c5c9 Mon Sep 17 00:00:00 2001 From: skal Date: Thu, 26 Mar 2026 07:34:54 +0100 Subject: 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 --- src/platform/stub_platform.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/platform/stub_platform.cc') 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; } -- cgit v1.2.3