(
            self, pixel_height, pixel_width,
            video_mem_size, max_pages, interleave_times, bank_size, bitsperpixel
        )
Initialise video mode settings.
Initialise video mode settings.
Initialise video mode settings .
def __init__(
            self, pixel_height, pixel_width,
            video_mem_size, max_pages, interleave_times, bank_size, bitsperpixel
        ):
        """Initialise video mode settings."""
        GraphicsMemoryMapper.__init__(
            self, pixel_height, pixel_width,
            video_mem_size, max_pages, interleave_times, bank_size, bitsperpixel
        )
        self._video_segment = CGA_SEGMENT
        # mode 6: 4x interleaved scan lines, 8 pixels per two bytes,
        # low attribute bits stored in even bytes, high bits in odd bytes.
        self._bytes_per_row = self._pixel_width * 2 // 8
def __init__ ( self , pixel_height , pixel_width , video_mem_size , max_pages , interleave_times , bank_size , bitsperpixel ) : GraphicsMemoryMapper . __init__ ( self , pixel_height , pixel_width , video_mem_size , max_pages , interleave_times , bank_size , bitsperpixel ) self . _video_segment = CGA_SEGMENT # mode 6: 4x interleaved scan lines, 8 pixels per two bytes, # low attribute bits stored in even bytes, high bits in odd bytes. self . _bytes_per_row = self . _pixel_width * 2 // 8