a-game

2D platformer written from scratch.
git clone git://git.amin.space/a-game.git
Log | Files | Refs | README | LICENSE

commit 8d9821e849317797b3b60a629b8578c4a841eb9c
parent c4077d84754b08872a16fde5d4e962aad6268f73
Author: amin <dev@aminmesbah.com>
Date:   Wed, 17 Apr 2019 02:37:44 +0000

Adjust starting window size

FossilOrigin-Name: 30d8b35bdfa9cc2a610b582851e7b0346eacaae08696707661372ed3caacf6d5
Diffstat:
Msrc/glmth.h | 1+
Msrc/platform_linux.h | 4++--
Msrc/platform_windows.h | 4++--
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);