Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
GorgonMeducer committed Nov 27, 2024
1 parent e8c0406 commit b74b26b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
1 change: 0 additions & 1 deletion examples/common/controls/text_tracking_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,6 @@ IMPL_PFB_ON_DRAW(__arm_2d_text_tracking_list_draw_cover)
(__arm_2d_color_t){this.tSettings.ScrollingBar.wValue},
128);


arm_2d_helper_dirty_region_update_item( &this.tDirtyRegionItem,
(arm_2d_tile_t *)ptTile,
&__right_region,
Expand Down
30 changes: 29 additions & 1 deletion examples/common/controls/text_tracking_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,35 @@ typedef struct text_tracking_list_setting_t {

typedef struct text_tracking_list_cfg_t {
implement(text_list_cfg_t);
implement_ex(text_tracking_list_setting_t, tSettings);

union {
/* please ensure the anonymous structure is identical to tSettings */
text_tracking_list_setting_t tSettings;
struct {
uint8_t bUsePIMode : 1;

/*! \note Auto Size mode only works with text left alignment */
uint8_t bIndicatorAutoSize : 1;

uint8_t bDisableScrollingBar : 1;
uint8_t bUseMonochromeMode : 1;

union {
uint8_t chValue;
uint16_t hwValue;
uint32_t wValue;
COLOUR_INT_TYPE tValue;
} IndicatorColour;

union {
uint8_t chValue;
uint16_t hwValue;
uint32_t wValue;
COLOUR_INT_TYPE tValue;
} ScrollingBar;
};
};

} text_tracking_list_cfg_t;

typedef struct text_tracking_list_t {
Expand Down

0 comments on commit b74b26b

Please sign in to comment.