From cb9b2c2fe7b77b0b8a3826ad2846655133683dfe Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Thu, 29 Aug 2024 22:09:29 -0700 Subject: Fix offseting. Add function to get screen size. --- gfx-iso/include/isogfx/isogfx.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gfx-iso/include/isogfx/isogfx.h') diff --git a/gfx-iso/include/isogfx/isogfx.h b/gfx-iso/include/isogfx/isogfx.h index e96606c..3421a7b 100644 --- a/gfx-iso/include/isogfx/isogfx.h +++ b/gfx-iso/include/isogfx/isogfx.h @@ -123,6 +123,9 @@ void isogfx_draw_tile(IsoGfx*, int x, int y, Tile); /// Resize the virtual screen's dimensions. bool isogfx_resize(IsoGfx*, int screen_width, int screen_height); +/// Get the virtual screen's dimensions. +void isogfx_get_screen_size(const IsoGfx*, int* width, int* height); + /// Return a pointer to the virtual screen's colour buffer. /// /// Call after each call to isogfx_render() to retrieve the render output. -- cgit v1.2.3