From 64e4e5522b9b5770a0d16d39533f8518bd2cd72d Mon Sep 17 00:00:00 2001 From: wxwisiasdf <39974089+wxwisiasdf@users.noreply.github.com> Date: Sat, 9 Dec 2023 21:47:13 +0000 Subject: [PATCH] smh --- src/gui/gui_graphics.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui/gui_graphics.hpp b/src/gui/gui_graphics.hpp index 955d8e65c..3d08c7dad 100644 --- a/src/gui/gui_graphics.hpp +++ b/src/gui/gui_graphics.hpp @@ -47,7 +47,6 @@ struct gfx_object { uint16_t type_dependent = 0; // secondary texture handle or border size -- 8bytes uint8_t flags = 0; // 9bytes uint8_t number_of_frames = 1; // 10bytes - uint8_t padding[6] = {}; // 16bytes object_type get_object_type() const { return object_type(flags & type_mask); @@ -65,7 +64,7 @@ struct gfx_object { return (flags & do_transparency_check) != 0; } }; -static_assert(sizeof(gfx_object) == 16); +static_assert(sizeof(gfx_object) == 10); enum class element_type : uint8_t { // 3 bits button = 0x01,