// // Created by rov on 12/26/25. // #include "system.h" #include void System_QueryMetrics(SystemMetrics_t *systemMetrics) { SDL_Rect bounds; const SDL_DisplayID displayId = SDL_GetPrimaryDisplay(); if (displayId && SDL_GetDisplayBounds(displayId, &bounds)) { systemMetrics->screenWidth = bounds.w; systemMetrics->screenHeight = bounds.h; return; } // Fallback SDL_LogError(SDL_LOG_CATEGORY_VIDEO, "System_QueryMetrics: couldn't get primary display bounds. Using fallback values."); systemMetrics->screenWidth = 800; systemMetrics->screenHeight = 600; }