Skip to content

Commit

Permalink
fixed #119
Browse files Browse the repository at this point in the history
  • Loading branch information
solosky committed Oct 20, 2023
1 parent 4ac96aa commit 78ad017
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion fw/application/src/app/amiibo/view/amiibo_detail_view.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ static void amiibo_detail_view_on_draw(mui_view_t *p_view, mui_canvas_t *p_canva

const db_amiibo_t *amd = get_amiibo_by_id(head, tail);
if (amd != NULL) {
mui_canvas_draw_utf8(p_canvas, 0, y += 13, amd->name_cn);
const char *name = getLanguage() == LANGUAGE_EN_US ? amd->name_en : amd->name_cn;
mui_canvas_draw_utf8(p_canvas, 0, y += 13, name);
if (strlen(ntag->notes) > 0) {
mui_element_autowrap_text(p_canvas, 0, y += 13, mui_canvas_get_width(p_canvas), 24, ntag->notes);
}
Expand Down
3 changes: 2 additions & 1 deletion fw/application/src/app/amiibolink/view/amiibolink_view.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ static void amiibolink_view_on_draw(mui_view_t *p_view, mui_canvas_t *p_canvas)

const db_amiibo_t *amd = get_amiibo_by_id(head, tail);
if (amd != NULL) {
mui_canvas_draw_utf8(p_canvas, 5, y += 15, amd->name_cn);
const char *name = getLanguage() == LANGUAGE_EN_US ? amd->name_en : amd->name_cn;
mui_canvas_draw_utf8(p_canvas, 5, y += 15, name);
if (strlen(ntag->notes) > 0) {
mui_element_autowrap_text(p_canvas, 5, y += 15, mui_canvas_get_width(p_canvas), 24, ntag->notes);
}
Expand Down
2 changes: 1 addition & 1 deletion fw/application/src/app/amiidb/view/amiibo_view.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ static void amiibo_view_on_draw(mui_view_t *p_view, mui_canvas_t *p_canvas) {

const db_amiibo_t *amd = get_amiibo_by_id(head, tail);
if (amd != NULL) {
const char *name = getLanguage() == LANGUAGE_ZH_HANS ? amd->name_cn : amd->name_en;
const char *name = getLanguage() == LANGUAGE_EN_US ? amd->name_en : amd->name_cn;
mui_canvas_draw_utf8(p_canvas, 0, y += 13, name);

const db_link_t *link = get_link_by_id(p_amiibo_view->game_id, head, tail);
Expand Down

0 comments on commit 78ad017

Please sign in to comment.