]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
imported winuaesrc2000b14b.zip
authorToni Wilen <twilen@winuae.net>
Wed, 9 Sep 2009 16:26:23 +0000 (19:26 +0300)
committerToni Wilen <twilen@winuae.net>
Mon, 22 Feb 2010 19:48:40 +0000 (21:48 +0200)
newcpu.c
od-win32/picasso96_win.c

index 5153b9db68a6b9fbc190000e0f1934f2cbe397af..81dfdf99ea1e42671288e63e1345801b6a82ca66 100644 (file)
--- a/newcpu.c
+++ b/newcpu.c
@@ -2298,7 +2298,7 @@ unsigned long REGPARAM2 op_illg (uae_u32 opcode)
     if ((opcode & 0xF000) == 0xF000) {
        if (warned < 20) {
            write_log (L"B-Trap %x at %x (%p)\n", opcode, pc, regs.pc_p);
-           activate_debugger ();
+           //activate_debugger ();
            warned++;
        }
        Exception (0xB, 0);
index 5108b58e490ab3f3723cc0d6a1a5a5642a391bdf..fa057d41d1fbf069701ed84700c377f3cfe56343 100644 (file)
@@ -4005,6 +4005,29 @@ STATIC_INLINE void copyrow (uae_u8 *src, uae_u8 *dst, int x, int y, int width)
     }
 }
 
+static void copyallinvert (uae_u8 *src, uae_u8 *dst)
+{
+    int x, y, w;
+
+    w = picasso96_state.Width * picasso_vidinfo.pixbytes;
+    if (picasso96_state.RGBFormat == host_mode) {
+       for (y = 0; y < picasso96_state.Height; y++) {
+           for (x = 0; x < w; x++)
+               dst[x] = src[x] ^ 0xff;
+           dst += picasso_vidinfo.rowbytes;
+           src += picasso96_state.BytesPerRow;
+       }
+    } else {
+       for (y = 0; y < picasso96_state.Height; y++) {
+           for (x = 0; x < w; x++)
+               src[x] ^= 0xff;
+           copyrow (src, dst, 0, y, picasso96_state.Width);
+           for (x = 0; x < w; x++)
+               src[x] ^= 0xff;
+       }
+    }
+}
+
 static void copyall (uae_u8 *src, uae_u8 *dst)
 {
     int y;