From f685d75154b76a0d10936edfdebda6c3930a0f8d Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Wed, 5 Feb 2025 23:43:00 +0100 Subject: [PATCH] added using offsets for standard game panel if extra panel items active --- src/game.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/game.c b/src/game.c index 04d4edba..1a05d02a 100644 --- a/src/game.c +++ b/src/game.c @@ -83,8 +83,10 @@ #define PANEL_OFF() (game.panel.active == FALSE) #define PANEL_DEACTIVATED(p) ((p)->x < 0 || (p)->y < 0 || PANEL_OFF()) -#define PANEL_XPOS(p) (DX + ALIGNED_TEXT_XPOS(p)) -#define PANEL_YPOS(p) (DY + ALIGNED_TEXT_YPOS(p)) +#define PANEL_XOFFSET(p) (setup.prefer_extra_panel_items ? (p)->xoffset2 : 0) +#define PANEL_YOFFSET(p) (setup.prefer_extra_panel_items ? (p)->yoffset2 : 0) +#define PANEL_XPOS(p) (DX + ALIGNED_TEXT_XPOS(p) + PANEL_XOFFSET(p)) +#define PANEL_YPOS(p) (DY + ALIGNED_TEXT_YPOS(p) + PANEL_YOFFSET(p)) // game panel display and control definitions #define GAME_PANEL_LEVEL_NUMBER 0 -- 2.34.1