From 951f4120ab6cca39e0c9672bf57a04c0bb10c2de Mon Sep 17 00:00:00 2001 From: Frode Solheim Date: Wed, 16 Jul 2025 00:25:14 +0200 Subject: [PATCH] debug.cpp: Remove duplicate putpixel and add a static modifier --- debug.cpp | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/debug.cpp b/debug.cpp index 1d910be2..4dddd596 100644 --- a/debug.cpp +++ b/debug.cpp @@ -454,7 +454,8 @@ uae_u32 get_ilong_debug (uaecptr addr) return 0xffffffff; } } -uae_u8 *get_real_address_debug(uaecptr addr) + +static uae_u8 *get_real_address_debug(uaecptr addr) { if (debug_mmu_mode) { flagtype olds = regs.s; @@ -1469,20 +1470,6 @@ static uae_u32 ledcolor (uae_u32 c, uae_u32 *rc, uae_u32 *gc, uae_u32 *bc, uae_u return v; } -static void putpixel(uae_u8 *buf, uae_u8 *genlockbuf, int x, xcolnr c8) -{ - if (x <= 0) { - return; - } - - if (genlockbuf) { - genlockbuf[x] = 1; - } - - uae_u32 *p = (uae_u32*)buf + x; - *p = c8; -} - #define lc(x) ledcolor (x, xredcolors, xgreencolors, xbluecolors, NULL) #define DMARECORD_SUBITEMS 8 struct dmadebug -- 2.47.3