From a4dfc666473fe92e23a9ec4266e86b4828997480 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 2 Apr 2026 22:28:41 -0700
Subject: [PATCH] Removed the game area border
This interfered too much visually with the touch controls and made the area feel small and constrained.
---
game/game.cpp | 18 ------------------
game/game.h | 1 -
2 files changed, 19 deletions(-)
diff --git a/game/game.cpp b/game/game.cpp
index 01502168..612a7627 100644
--- a/game/game.cpp
+++ b/game/game.cpp
@@ -510,8 +510,6 @@ GamePanelDelegate::OnDraw(DRAWLEVEL drawLevel)
gPlayers[i]->BlitSprite();
}
- DrawBorder();
-
StopZoomedDrawing();
}
@@ -775,22 +773,6 @@ GamePanelDelegate::StopZoomedDrawing()
screen->ClipBlit(&m_savedClip);
}
-void
-GamePanelDelegate::DrawBorder()
-{
- if (gZoomGame) {
- return;
- }
-
- SDL_Rect rect;
- screen->GetClip(&rect);
- rect.x -= 1;
- rect.y -= 1;
- rect.w += 2;
- rect.h += 2;
- screen->DrawRect(rect.x, rect.y, rect.w, rect.h, screen->MapRGB(0x75, 0x75, 0xFF));
-}
-
/* ----------------------------------------------------------------- */
/* -- Draw the status display */
diff --git a/game/game.h b/game/game.h
index 852652d3..29004910 100644
--- a/game/game.h
+++ b/game/game.h
@@ -47,7 +47,6 @@ class GamePanelDelegate : public UIPanelDelegate
void ToggleZoomGame();
void StartZoomedDrawing();
void StopZoomedDrawing();
- void DrawBorder();
void DrawStatus(Bool first);
bool UpdateGameState();
void DoHousekeeping();