From f9a84487821cc49687a5b11917d000f846f687ac Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Fri, 3 Jan 2025 19:48:00 +0300 Subject: [PATCH] make SpritePrimitive take less space (52 -> 48 bytes) --- src/rendering/twn_draw_c.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/rendering/twn_draw_c.h b/src/rendering/twn_draw_c.h index e1bdcd8..fccde14 100644 --- a/src/rendering/twn_draw_c.h +++ b/src/rendering/twn_draw_c.h @@ -37,12 +37,13 @@ typedef struct SpritePrimitive { Color color; float rotation; TextureKey texture_key; - bool flip_x; - bool flip_y; - bool repeat; m_option_list( Rect, texture_region ) + + bool flip_x; + bool flip_y; + bool repeat; } SpritePrimitive; typedef struct RectPrimitive {