aboutsummaryrefslogtreecommitdiff
path: root/src/gui/inc
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-07-02 04:41:22 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-07-02 04:41:22 +0200
commit93d2c39b1ba690e29f64e0091e9db1514e1aad0d (patch)
tree12b93738df27fd637ea4f8f09efe9c25b8bc374e /src/gui/inc
parentb0eb562b9b78d37493d28b413aca45542e8cd0ba (diff)
downloadrts-93d2c39b1ba690e29f64e0091e9db1514e1aad0d.tar.gz
gui/bar: support arbitrary x/y and width
Diffstat (limited to 'src/gui/inc')
-rw-r--r--src/gui/inc/gui/bar.h7
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