commit a318793658cdd0930859db18606645af796bfa79
parent af5d41ce855b6d3f37e19d4af482024f50ec853b
Author: Amin Mesbah <dev@aminmesbah.com>
Date: Tue, 16 Apr 2019 19:37:44 -0700
Adjust starting window size
Diffstat:
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/glmth.h b/src/glmth.h
@@ -317,6 +317,7 @@ internal inline m4 glmth_translate(m4 m, v3 v)
internal inline m4 glmth_projection_ortho(f32 left, f32 right, f32 bottom, f32 top, f32 near, f32 far)
{
+ // TODO: This assert fails when you minimise the window in Windows.
assert(left != right);
assert(bottom != top);
assert(near != far);
diff --git a/src/platform_linux.h b/src/platform_linux.h
@@ -1,5 +1,5 @@
-#define PLATFORM_SCR_WIDTH 600u
-#define PLATFORM_SCR_HEIGHT 600u
+#define PLATFORM_SCR_WIDTH 595u
+#define PLATFORM_SCR_HEIGHT 238u
internal void error_callback(int error, const char* description);
internal void framebuffer_size_callback(GLFWwindow* window, int width, int height);
diff --git a/src/platform_windows.h b/src/platform_windows.h
@@ -1,5 +1,5 @@
-#define PLATFORM_SCR_WIDTH 600u
-#define PLATFORM_SCR_HEIGHT 600u
+#define PLATFORM_SCR_WIDTH 595u
+#define PLATFORM_SCR_HEIGHT 238u
internal void error_callback(int error, const char* description);
internal void framebuffer_size_callback(GLFWwindow* window, int width, int height);