[pypy-svn] r62578 - pypy/trunk/pypy/lang/gameboy

tverwaes at codespeak.net tverwaes at codespeak.net
Thu Mar 5 14:35:18 CET 2009


Author: tverwaes
Date: Thu Mar  5 14:35:16 2009
New Revision: 62578

Modified:
   pypy/trunk/pypy/lang/gameboy/gameboy_implementation.py
   pypy/trunk/pypy/lang/gameboy/video_sprite.py
Log:
whoops, now the window draws correctly :) seems like there is no visual noise
left ... but who knows


Modified: pypy/trunk/pypy/lang/gameboy/gameboy_implementation.py
==============================================================================
--- pypy/trunk/pypy/lang/gameboy/gameboy_implementation.py	(original)
+++ pypy/trunk/pypy/lang/gameboy/gameboy_implementation.py	Thu Mar  5 14:35:16 2009
@@ -131,13 +131,6 @@
                 color = VideoDriverImplementation.COLOR_MAP[self.get_pixel_color(x, y)]
                 RSDL_helper.set_pixel(self.screen, x, y, color)
 
-    def draw_tile_pixels(self):
-        for y in range(128):
-            for x in range(128):
-                #color = VideoDriverImplementation.COLOR_MAP[self.get_pixel_color(x, y)]
-                #RSDL_helper.set_pixel(self.screen, x, y, color)
-                pass
-        
     def draw_ascii_pixels(self):
             str = []
             for y in range(self.height):

Modified: pypy/trunk/pypy/lang/gameboy/video_sprite.py
==============================================================================
--- pypy/trunk/pypy/lang/gameboy/video_sprite.py	(original)
+++ pypy/trunk/pypy/lang/gameboy/video_sprite.py	Thu Mar  5 14:35:16 2009
@@ -269,7 +269,7 @@
            self.line_y < GAMEBOY_SCREEN_HEIGHT:
 
             tile_map   = self.get_tile_map_space()
-            tile_group = tile_map[self.line_y >> 5]
+            tile_group = tile_map[self.line_y >> 3]
 
             self.draw_tiles(self.x + 1, tile_group,
                             self.line_y, tile_data,



More information about the Pypy-commit mailing list