From: Toni Wilen Date: Wed, 9 Sep 2009 16:26:23 +0000 (+0300) Subject: imported winuaesrc2000b14b.zip X-Git-Tag: 2100~57 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=5753b2f29c7260eedf9d977a46a9f14a68205109;p=francis%2Fwinuae.git imported winuaesrc2000b14b.zip --- diff --git a/newcpu.c b/newcpu.c index 5153b9db..81dfdf99 100644 --- 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); diff --git a/od-win32/picasso96_win.c b/od-win32/picasso96_win.c index 5108b58e..fa057d41 100644 --- a/od-win32/picasso96_win.c +++ b/od-win32/picasso96_win.c @@ -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;