]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
debug.cpp: Remove duplicate putpixel and add a static modifier
authorFrode Solheim <frode@fs-uae.net>
Tue, 15 Jul 2025 22:25:14 +0000 (00:25 +0200)
committerFrode Solheim <frode@fs-uae.net>
Tue, 15 Jul 2025 22:25:14 +0000 (00:25 +0200)
debug.cpp

index 1d910be2e507fdbf3ea510a6c3bc33f372ca2c17..4dddd596617d416770b5931a7d6330a1ce8aa02d 100644 (file)
--- 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