From 4fb0a9935eae14130b56e443d0c58329ac44be41 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 16 Feb 2024 01:17:20 +0100 Subject: Inline winclr() --- src/ahoy/gui.c | 10 ++-------- 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 @@ -62,13 +62,6 @@ winfree(void) SDL_Quit(); } -void -winclr(void) -{ - SDL_SetRenderDrawColor(rndr, 0, 0, 0, UINT8_MAX); - SDL_RenderClear(rndr); -} - void windrw(void) { @@ -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); -- cgit v1.2.3