Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
GorgonMeducer committed Oct 24, 2023
1 parent c0bba97 commit 0ec0c01
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Helper/Include/arm_2d_helper_scene.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions examples/[template][bare-metal]/virtual_resource_demo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 0ec0c01

Please sign in to comment.