aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ahoy/gui.c10
-rw-r--r--src/ahoy/gui.h1
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);