[pypy-svn] r62259 - in pypy/trunk/pypy/lang/gameboy: . debug

tverwaes at codespeak.net tverwaes at codespeak.net
Fri Feb 27 23:40:17 CET 2009


Author: tverwaes
Date: Fri Feb 27 23:40:16 2009
New Revision: 62259

Modified:
   pypy/trunk/pypy/lang/gameboy/debug/debug_comparator.py
   pypy/trunk/pypy/lang/gameboy/video.py
Log:
aargl


Modified: pypy/trunk/pypy/lang/gameboy/debug/debug_comparator.py
==============================================================================
--- pypy/trunk/pypy/lang/gameboy/debug/debug_comparator.py	(original)
+++ pypy/trunk/pypy/lang/gameboy/debug/debug_comparator.py	Fri Feb 27 23:40:16 2009
@@ -278,8 +278,8 @@
             ("vram",    self.video.vram,    "vram"),
             ("oam",     self.video.oam,     "oam"),
             ("line",    self.video.line,    "line"),
-            ("objects", self.video.objects, "objects")
-         #   ("palette", self.video.palette, "palette")
+            ("objects", self.video.objects, "objects"),
+            ("palette", self.video.palette, "palette"),
         ]
         self.compare_memory_set(cmp, data, label="video");
     

Modified: pypy/trunk/pypy/lang/gameboy/video.py
==============================================================================
--- pypy/trunk/pypy/lang/gameboy/video.py	(original)
+++ pypy/trunk/pypy/lang/gameboy/video.py	Fri Feb 27 23:40:16 2009
@@ -542,9 +542,8 @@
             if rightmost != index:
                 self.swap_object_indices(rightmost, index)
                 
-    def swap_object_indices(self, index_a, index_b):
-        data                  = self.objects[index_a]
-        self.objects[index_a] = sself.objects[index_b] = data
+    def swap_object_indices(self, a, b):
+        self.objects[a], self.objects[b] = self.objects[b], self.objects[a]
 
     # ---------------------------------------------------------------------
     



More information about the Pypy-commit mailing list