aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-10-04 00:09:12 +1000
committerquou <quou@disroot.org>2024-10-04 00:09:12 +1000
commit88b9072f505eedfa7deb9452e8cd6883b9672cf4 (patch)
tree53213910b0ecae5b402b1365c6844ad2c3a1765f
parent7e74f4402ead8422c151e93190c5c259ddbaecb9 (diff)
Increase the size of the area that the HUD draws to
-rw-r--r--hud.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hud.c b/hud.c
index 38e9532..a821305 100644
--- a/hud.c
+++ b/hud.c
@@ -22,10 +22,10 @@ const int hud_offset_y = 4;
void hud_clip(Renderer* r) {
Rect clip;
- clip.x = hud_offset_x;
- clip.y = hud_offset_y;
- clip.w = background_rect.w;
- clip.h = background_rect.h;
+ clip.x = hud_offset_x - 1;
+ clip.y = hud_offset_y - 1;
+ clip.w = background_rect.w + 2;
+ clip.h = background_rect.h + 2;
ren_clip(r, &clip);
}