From 9e1f1069cc6ff2e247c378a23952b67eadd18ab3 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Tue, 27 Sep 2022 17:03:06 +0200 Subject: WIP --- src/gui/inc/gui/rounded_rect.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/gui/inc') diff --git a/src/gui/inc/gui/rounded_rect.h b/src/gui/inc/gui/rounded_rect.h index e1203e4..13242f4 100644 --- a/src/gui/inc/gui/rounded_rect.h +++ b/src/gui/inc/gui/rounded_rect.h @@ -15,11 +15,9 @@ struct gui_rounded_rect { struct gui_common common; unsigned short w, h; + bool adjust; }; -UTIL_STATIC_ASSERT(!offsetof(struct gui_rounded_rect, common), - "unexpected offset for struct gui_rounded_rect"); - void gui_rounded_rect_init(struct gui_rounded_rect *r); enum @@ -36,6 +34,9 @@ enum extern struct sprite gui_rounded_rect_sprites[MAX_GUI_ROUNDED_RECT_SPRITES]; +UTIL_STATIC_ASSERT(!offsetof(struct gui_rounded_rect, common), + "unexpected offset for struct gui_rounded_rect"); + #ifdef __cplusplus } #endif -- cgit v1.2.3