(self, t)
Fix tile writer
Fix tile writer
Fix tile writer
def write_tile_to_rom(self, t):
        """Fix tile writer"""
        surf_buf = t.get_buffer().raw
        for xa, xb in ((4, 5), (6, 7), (0, 1), (2, 3)):
            for y in range(8):
                pixa = surf_buf[(8*y)+xa]
                pixb = surf_buf[(8*y)+xb] << 4
                self.fd1.write(struct.pack('B', pixb | pixa))
def write_tile_to_rom ( self , t ) : surf_buf = t . get_buffer ( ) . raw for xa , xb in ( ( 4 , 5 ) , ( 6 , 7 ) , ( 0 , 1 ) , ( 2 , 3 ) ) : for y in range ( 8 ) : pixa = surf_buf [ ( 8 * y ) + xa ] pixb = surf_buf [ ( 8 * y ) + xb ] << 4 self . fd1 . write ( struct . pack ( 'B' , pixb | pixa ) )