Skip to content

Commit

Permalink
[component/tgui] since user will use __CORNOR_TILE_NUM, rename it to …
Browse files Browse the repository at this point in the history
…CORNOR_TILE_NUM
  • Loading branch information
versaloon committed Nov 14, 2024
1 parent 5985f74 commit d7842b7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions example/template/demo/tgui_demo/tgui_demo/tgui_custom.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
/*============================ GLOBAL VARIABLES ==============================*/
/*============================ LOCAL VARIABLES ===============================*/

static const vsf_tgui_tile_t __controls_container_corner_tiles[__CORNOR_TILE_NUM] = {
static const vsf_tgui_tile_t __controls_container_corner_tiles[CORNOR_TILE_NUM] = {
[CORNOR_TILE_IN_TOP_LEFT] = {
.tChild = {
.parent_ptr = (vsf_tgui_tile_core_t*)&bg1_RGB,
Expand Down Expand Up @@ -62,7 +62,7 @@ static const vsf_tgui_tile_t __controls_container_corner_tiles[__CORNOR_TILE_NUM
},
};

static const vsf_tgui_tile_t __controls_label_corner_tiles[4] = {
static const vsf_tgui_tile_t __controls_label_corner_tiles[CORNOR_TILE_NUM] = {
[CORNOR_TILE_IN_TOP_LEFT] = {
.tChild = {
.tSize = {.iWidth = 16, .iHeight = 16, },
Expand Down
4 changes: 2 additions & 2 deletions example/tgui/demo/tgui_demo/tgui_demo/tgui_custom.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
/*============================ GLOBAL VARIABLES ==============================*/
/*============================ LOCAL VARIABLES ===============================*/

static const vsf_tgui_tile_t __controls_container_corner_tiles[__CORNOR_TILE_NUM] = {
static const vsf_tgui_tile_t __controls_container_corner_tiles[CORNOR_TILE_NUM] = {
[CORNOR_TILE_IN_TOP_LEFT] = {
.tChild = {
.parent_ptr = (vsf_tgui_tile_core_t*)&bg1_RGB,
Expand Down Expand Up @@ -62,7 +62,7 @@ static const vsf_tgui_tile_t __controls_container_corner_tiles[__CORNOR_TILE_NUM
},
};

static const vsf_tgui_tile_t __controls_label_corner_tiles[4] = {
static const vsf_tgui_tile_t __controls_label_corner_tiles[CORNOR_TILE_NUM] = {
[CORNOR_TILE_IN_TOP_LEFT] = {
.tChild = {
.tSize = {.iWidth = 16, .iHeight = 16, },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ typedef enum vsf_tgui_sv_cornor_tile_mode_t {
CORNOR_TILE_IN_BOTTOM_LEFT,
CORNOR_TILE_IN_BOTTOM_RIGHT,

__CORNOR_TILE_NUM,
CORNOR_TILE_NUM,
} vsf_tgui_sv_cornor_tile_mode_t;
/*============================ GLOBAL VARIABLES ==============================*/
/*============================ PROTOTYPES ====================================*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ vsf_tgui_size_t __vk_tgui_label_v_get_minimal_rendering_size(vsf_tgui_label_t* l

#if VSF_TGUI_CFG_SV_SUPPORT_CORNER_TILE == ENABLED
if (label_ptr->show_corner_tile) {
vsf_tgui_region_t regions[__CORNOR_TILE_NUM] = { {0} };
vsf_tgui_region_t regions[CORNOR_TILE_NUM] = { {0} };

for (int i = 0; i < dimof(regions); i++) {
const vsf_tgui_tile_t* tile_ptr = vsf_tgui_control_v_get_corner_tile((vsf_tgui_control_t *)label_ptr, i);
Expand Down

0 comments on commit d7842b7

Please sign in to comment.