Skip to content

Commit

Permalink
smh
Browse files Browse the repository at this point in the history
  • Loading branch information
wxwisiasdf committed Dec 9, 2023
1 parent 8fe7996 commit 64e4e55
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gui/gui_graphics.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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,
Expand Down

0 comments on commit 64e4e55

Please sign in to comment.