From: Frode Solheim Date: Tue, 15 Jul 2025 22:25:14 +0000 (+0200) Subject: debug.cpp: Remove duplicate putpixel and add a static modifier X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=951f4120ab6cca39e0c9672bf57a04c0bb10c2de;p=francis%2Fwinuae.git debug.cpp: Remove duplicate putpixel and add a static modifier --- 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