(
            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 = EGA_SEGMENT
        # EGA uses colour planes, 1 bpp for each plane
        # this is used by walk_memory to determine strides
        self._ppb = 8
        self._bytes_per_row = self._pixel_width // 8
        self._planes_used = range(4)
        # additional colour plane mask
        self._master_plane_mask = 0x07
        # current ega memory colour plane to read
        self._plane = 0
        # current ega memory colour planes to write to
        self._plane_mask = 0xff
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 = EGA_SEGMENT # EGA uses colour planes, 1 bpp for each plane # this is used by walk_memory to determine strides self . _ppb = 8 self . _bytes_per_row = self . _pixel_width // 8 self . _planes_used = range ( 4 ) # additional colour plane mask self . _master_plane_mask = 0x07 # current ega memory colour plane to read self . _plane = 0 # current ega memory colour planes to write to self . _plane_mask = 0xff