https://github.com/libsdl-org/Maelstrom/commit/bd57aa285fdcf06c43aa4bb89b31b2173442d893
From bd57aa285fdcf06c43aa4bb89b31b2173442d893 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sun, 11 Nov 2012 02:23:43 -0800
Subject: [PATCH] Allow setting the clear color
---
screenlib/SDL_FrameBuf.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/screenlib/SDL_FrameBuf.h b/screenlib/SDL_FrameBuf.h
index 1464ee60..0e34153c 100644
--- a/screenlib/SDL_FrameBuf.h
+++ b/screenlib/SDL_FrameBuf.h
@@ -149,8 +149,8 @@ class FrameBuf : public ErrorBase {
void Clear(int x, int y, int w, int h) {
FillRect(x, y, w, h, 0);
}
- void Clear(void) {
- UpdateDrawColor(0);
+ void Clear(Uint32 color = 0) {
+ UpdateDrawColor(color);
SDL_RenderClear(renderer);
}
void DrawPoint(int x, int y, Uint32 color) {