more settings dialog tests
[drnoksnes] / ppu.cpp
diff --git a/ppu.cpp b/ppu.cpp
index 9754b6f..b9a5963 100644 (file)
--- a/ppu.cpp
+++ b/ppu.cpp
@@ -717,7 +717,6 @@ void S9xSetPPU(uint8 Byte, uint16 Address)
                        case 0x2132 :
                                if (Byte != Memory.FillRAM[0x2132])
                                {
-                                       int redraw_needed=0;
                                        int new_fixedcol;
                                        //FLUSH_REDRAW ();
                                        // Colour data for fixed colour addition/subtraction
@@ -1339,13 +1338,13 @@ uint8 S9xGetPPU(uint16 Address)
                                                CPU.BranchSkip = TRUE;
                                                break;
                                }
-                               if (Address & 3 < 2)
+                               if ((Address & 3) < 2)
                                {
                                        int r = rand();
                                        if (r & 2)
                                        {
                                                if (r & 4)
-                                                       return (Address & 3 == 1 ? 0xaa : 0xbb);
+                                                       return ((Address & 3) == 1 ? 0xaa : 0xbb);
                                                else
                                                        return ((r >> 3) & 0xff);
                                        }