(self, text_height, text_width, video_mem_size, max_pages, is_mono)
Initialise video mode settings.
Initialise video mode settings.
Initialise video mode settings .
def __init__(self, text_height, text_width, video_mem_size, max_pages, is_mono):
        """Initialise video mode settings."""
        page_size = 0x1000 if text_width == 80 else 0x800
        _MemoryMapper.__init__(self, video_mem_size, max_pages, page_size)
        self._video_segment = MDA_SEGMENT if is_mono else CGA_SEGMENT
        self._text_height = text_height
        self._text_width = text_width
def __init__ ( self , text_height , text_width , video_mem_size , max_pages , is_mono ) : page_size = 0x1000 if text_width == 80 else 0x800 _MemoryMapper . __init__ ( self , video_mem_size , max_pages , page_size ) self . _video_segment = MDA_SEGMENT if is_mono else CGA_SEGMENT self . _text_height = text_height self . _text_width = text_width