Skip to content

Commit

Permalink
[EE] Fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFakeMontyOnTheRun committed Nov 14, 2023
1 parent 8de3e57 commit 2109030
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions ee_frontend/base3d/src/ee/Renderer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,7 @@ void render(const long ms) {
if (focusItemName != NULL) {
size_t len = strlen(focusItemName);
int lines = 1 + (len / 27);
fill(0, YRES - (8 * lines), XRES, lines * 8, 0, 1);
fillRect(0, YRES - (8 * lines), XRES, lines * 8, 0, 1);
drawTextAtWithMarginWithFiltering(1, 26 - lines, XRES, focusItemName, 255, ' ');
}

Expand All @@ -1069,7 +1069,7 @@ void render(const long ms) {
}
}

fill(0, 0, 216, lines * 8, 0, 1);
fillRect(0, 0, 216, lines * 8, 0, 1);

drawTextAt(1, 1, &messageLogBuffer[0], 255);
}
Expand Down
10 changes: 5 additions & 5 deletions ee_frontend/base3d/src/ee/Renderer_Rasterization.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,16 @@ void drawRect(
const size_t dy,
const FramebufferPixelFormat pixel) {

fill(x, y, 1, dy - 1, pixel, 0);
fillRect(x, y, 1, dy - 1, pixel, 0);

fill(x, y, dx - 1, 1, pixel, 0);
fillRect(x, y, dx - 1, 1, pixel, 0);

fill(x + dx - 1, y, 1, dy - 1, pixel, 0);
fillRect(x + dx - 1, y, 1, dy - 1, pixel, 0);

fill(x, y + dy - 1, dx, 1, pixel, 0);
fillRect(x, y + dy - 1, dx, 1, pixel, 0);
}

void fill(
void fillRect(
const int _x,
const int _y,
const size_t _dx,
Expand Down

0 comments on commit 2109030

Please sign in to comment.