diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-02-16 01:17:20 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-02-16 01:17:20 +0100 |
commit | 4fb0a9935eae14130b56e443d0c58329ac44be41 (patch) | |
tree | 62142a16ac2be87c75080b9fff40751a1239d01d | |
parent | 1427e04e126c90810164bee34dd4f898d2f39f91 (diff) |
Inline winclr()
-rw-r--r-- | src/ahoy/gui.c | 10 | ||||
-rw-r--r-- | src/ahoy/gui.h | 1 |
2 files changed, 2 insertions, 9 deletions
diff --git a/src/ahoy/gui.c b/src/ahoy/gui.c index 82a351e..ea00b4a 100644 --- a/src/ahoy/gui.c +++ b/src/ahoy/gui.c @@ -63,13 +63,6 @@ winfree(void) } void -winclr(void) -{ - SDL_SetRenderDrawColor(rndr, 0, 0, 0, UINT8_MAX); - SDL_RenderClear(rndr); -} - -void windrw(void) { SDL_Rect r = { @@ -91,7 +84,8 @@ windrw(void) if (c8.screen[i]) goto noclr; } - winclr(); + SDL_SetRenderDrawColor(rndr, 0, 0, 0, UINT8_MAX); + SDL_RenderClear(rndr); return; noclr: diff --git a/src/ahoy/gui.h b/src/ahoy/gui.h index 5312d4e..d3953b5 100644 --- a/src/ahoy/gui.h +++ b/src/ahoy/gui.h @@ -12,7 +12,6 @@ typedef enum { void wininit(void); void winfree(void); -void winclr(void); void windrw(void); void auplay(bool); void readkb(void); |