diff --git a/src/platforms/rcore_android.c b/src/platforms/rcore_android.c index bb74ac566..73ce07e3c 100644 --- a/src/platforms/rcore_android.c +++ b/src/platforms/rcore_android.c @@ -484,7 +484,7 @@ int GetMonitorRefreshRate(int monitor) Vector2 GetMonitorScale(int monitor) { TRACELOG(LOG_WARNING, "GetMonitorScale() not implemented on target platform"); - return 0; + return (Vector2){ 1.0f, 1.0f }; } // Get the human-readable, UTF-8 encoded name of the selected monitor diff --git a/src/platforms/rcore_desktop_rgfw.c b/src/platforms/rcore_desktop_rgfw.c index a7f858da2..d1079651c 100644 --- a/src/platforms/rcore_desktop_rgfw.c +++ b/src/platforms/rcore_desktop_rgfw.c @@ -633,7 +633,7 @@ int GetMonitorRefreshRate(int monitor) Vector2 GetMonitorScale(int monitor) { TRACELOG(LOG_WARNING, "GetMonitorScale() not implemented on target platform"); - return 0; + return (Vector2){ 1.0f, 1.0f }; } // Get the human-readable, UTF-8 encoded name of the selected monitor diff --git a/src/platforms/rcore_desktop_sdl.c b/src/platforms/rcore_desktop_sdl.c index 294fa7766..02cd5a42e 100644 --- a/src/platforms/rcore_desktop_sdl.c +++ b/src/platforms/rcore_desktop_sdl.c @@ -1040,7 +1040,7 @@ int GetMonitorRefreshRate(int monitor) Vector2 GetMonitorScale(int monitor) { TRACELOG(LOG_WARNING, "GetMonitorScale() not implemented on target platform"); - return 0; + return (Vector2){ 1.0f, 1.0f }; } // Get the human-readable, UTF-8 encoded name of the selected monitor diff --git a/src/platforms/rcore_drm.c b/src/platforms/rcore_drm.c index 6ca4711c0..dc37ec492 100644 --- a/src/platforms/rcore_drm.c +++ b/src/platforms/rcore_drm.c @@ -470,7 +470,7 @@ int GetMonitorRefreshRate(int monitor) Vector2 GetMonitorScale(int monitor) { TRACELOG(LOG_WARNING, "GetMonitorScale() not implemented on target platform"); - return 0; + return (Vector2){ 1.0f, 1.0f }; } // Get the human-readable, UTF-8 encoded name of the selected monitor diff --git a/src/platforms/rcore_template.c b/src/platforms/rcore_template.c index 966b88b54..5720c9d3b 100644 --- a/src/platforms/rcore_template.c +++ b/src/platforms/rcore_template.c @@ -261,7 +261,7 @@ int GetMonitorRefreshRate(int monitor) Vector2 GetMonitorScale(int monitor) { TRACELOG(LOG_WARNING, "GetMonitorScale() not implemented on target platform"); - return 0; + return (Vector2){ 1.0f, 1.0f }; } // Get the human-readable, UTF-8 encoded name of the selected monitor diff --git a/src/platforms/rcore_web.c b/src/platforms/rcore_web.c index 78bb95903..e0b943fc7 100644 --- a/src/platforms/rcore_web.c +++ b/src/platforms/rcore_web.c @@ -755,7 +755,7 @@ int GetMonitorRefreshRate(int monitor) Vector2 GetMonitorScale(int monitor) { TRACELOG(LOG_WARNING, "GetMonitorScale() not implemented on target platform"); - return 0; + return (Vector2){ 1.0f, 1.0f }; } // Get the human-readable, UTF-8 encoded name of the selected monitor