diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-07-02 04:41:22 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-07-02 04:41:22 +0200 |
| commit | 1d40cadf43528c825b64539f48a66063765b132a (patch) | |
| tree | 6e87872e0db3ef1cf4fd447a948811f3e031bba4 /src/gui/inc | |
| parent | 85e11e8f9859738abbc53d2c96f4731869d09802 (diff) | |
| download | jancity-1d40cadf43528c825b64539f48a66063765b132a.tar.gz | |
gui/bar: support arbitrary x/y and width
Diffstat (limited to 'src/gui/inc')
| -rw-r--r-- | src/gui/inc/gui/bar.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/inc/gui/bar.h b/src/gui/inc/gui/bar.h index a8000cf..60ee0ca 100644 --- a/src/gui/inc/gui/bar.h +++ b/src/gui/inc/gui/bar.h @@ -14,11 +14,9 @@ extern "C" struct gui_bar { struct gui_common common; + short w; }; -UTIL_STATIC_ASSERT(!offsetof(struct gui_bar, common), - "unexpected offset for struct gui_bar"); - void gui_bar_init(struct gui_bar *b); enum @@ -30,6 +28,9 @@ enum MAX_GUI_BAR_SPRITES }; +UTIL_STATIC_ASSERT(!offsetof(struct gui_bar, common), + "unexpected offset for struct gui_bar"); + extern struct sprite gui_bar_sprites[MAX_GUI_BAR_SPRITES]; #ifdef __cplusplus |
