From 0ec0c016f371cc3753ef8da3867b67770513a9a3 Mon Sep 17 00:00:00 2001 From: Gabriel Wang Date: Tue, 24 Oct 2023 17:38:07 +0100 Subject: [PATCH] minor update --- Helper/Include/arm_2d_helper_scene.h | 2 +- examples/[template][bare-metal]/virtual_resource_demo.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Helper/Include/arm_2d_helper_scene.h b/Helper/Include/arm_2d_helper_scene.h index f2e8e7989..e12ffcb6b 100644 --- a/Helper/Include/arm_2d_helper_scene.h +++ b/Helper/Include/arm_2d_helper_scene.h @@ -200,7 +200,7 @@ struct arm_2d_scene_t { arm_2d_scene_t *ptNext; //!< next scene arm_2d_scene_player_t *ptPlayer; //!< points to the host scene player - /*! \note Deprecated! Please do NOT use unless you know the consequence */ + /*! \note Please do NOT use it unless it is necessary */ arm_2d_helper_draw_handler_t *fnBackground; arm_2d_region_list_item_t *ptDirtyRegion; //!< dirty region list for the scene diff --git a/examples/[template][bare-metal]/virtual_resource_demo.c b/examples/[template][bare-metal]/virtual_resource_demo.c index ef7c4dd78..b2825d829 100644 --- a/examples/[template][bare-metal]/virtual_resource_demo.c +++ b/examples/[template][bare-metal]/virtual_resource_demo.c @@ -211,6 +211,10 @@ IMPL_FONT_GET_CHAR_DESCRIPTOR(__digit_font_get_char_descriptor) ptDescriptor->tileChar.ptParent = (arm_2d_tile_t *)&ptFont->tileFont; ptDescriptor->tileChar.tInfo.bDerivedResource = true; ptDescriptor->chCodeLength = 1; + + ptDescriptor->iBearingX = 0; + ptDescriptor->iBearingY = ptFont->tCharSize.iHeight; + ptDescriptor->iAdvance = ptFont->tCharSize.iWidth; arm_foreach( arm_2d_char_idx_t, this.tLookUpTable, this.hwCount, ptItem) { if ( *pchCharCode >= ptItem->chStartCode[0]