Skip to content

Commit

Permalink
fix: displaying focused item name on screen
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFakeMontyOnTheRun committed Jun 20, 2024
1 parent ebba50d commit d4700cb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ee_frontend/base3d/src/Renderer.c
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ void render(const long ms) {
size_t len = strlen(focusItemName);
int lines = 1 + (len / 27);
fillRect(0, YRES - (8 * lines), XRES, lines * 8, 0, 1);
drawTextAtWithMarginWithFiltering(1, 26 - lines, XRES, focusItemName, 255, ' ');
drawTextAtWithMarginWithFiltering(1, (YRES / 8) - lines, XRES, focusItemName, 255, ' ');
}


Expand Down
2 changes: 1 addition & 1 deletion ee_frontend/base3d/src/ee/Renderer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,7 @@ void render(const long ms) {
size_t len = strlen(focusItemName);
int lines = 1 + (len / 27);
fillRect(0, YRES - (8 * lines), XRES, lines * 8, 0, 1);
drawTextAtWithMarginWithFiltering(1, 26 - lines, XRES, focusItemName, 255, ' ');
drawTextAtWithMarginWithFiltering(1, (YRES / 8) - lines, XRES, focusItemName, 255, ' ');
}


Expand Down
2 changes: 1 addition & 1 deletion gl_frontend/GL1Common/Renderer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,7 @@ void render(const long ms) {
size_t len = strlen(focusItemName);
int lines = 1 + (len / 27);
fillRect(0, YRES - (8 * lines), XRES, lines * 8, getPaletteEntry(0xFF000000), TRUE);
drawTextAtWithMarginWithFiltering(1, 26 - lines, XRES, focusItemName, getPaletteEntry(0xFFFFFFFF), ' ');
drawTextAtWithMarginWithFiltering(1, (YRES / 8) - lines, XRES, focusItemName, getPaletteEntry(0xFFFFFFFF), ' ');
}


Expand Down
2 changes: 1 addition & 1 deletion mx_frontend/base3d/src/Renderer.c
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ void render(const long ms) {
size_t len = strlen(focusItemName);
int lines = 1 + (len / 27);
fillRect(0, YRES - (8 * lines), XRES, lines * 8, 0, 1);
drawTextAtWithMarginWithFiltering(1, 26 - lines, XRES, focusItemName, 255, ' ');
drawTextAtWithMarginWithFiltering(1, (YRES / 8) - lines, XRES, focusItemName, 255, ' ');
}


Expand Down

0 comments on commit d4700cb

Please sign in to comment.