--- hatari/python-ui/hatari.py 2019/04/09 08:49:05 1.1.1.3 +++ hatari/python-ui/hatari.py 2019/04/09 08:49:57 1.1.1.4 @@ -266,6 +266,8 @@ class HatariConfigMapping(ConfigStore): self._hatari = hatari self._lock_updates = False + self._desktop_w = 0 + self._desktop_h = 0 self._options = [] def validate(self): @@ -494,13 +496,13 @@ class HatariConfigMapping(ConfigStore): self.set("[Floppy]", "szDisk%cFileName" % ("A", "B")[drive], filename) self._change_option("--disk-%c %s" % (("a", "b")[drive], filename)) - # ------------ slow FDC access --------------- - def get_slowfdc(self): - return self.get("[Floppy]", "bSlowFloppy") - - def set_slowfdc(self, value): - self.set("[Floppy]", "bSlowFloppy", value) - self._change_option("--slowfdc %s" % str(value)) + # ------------ fast FDC access --------------- + def get_fastfdc(self): + return self.get("[Floppy]", "FastFloppy") + + def set_fastfdc(self, value): + self.set("[Floppy]", "FastFloppy", value) + self._change_option("--fastfdc %s" % str(value)) # ------------- disk protection ------------- def get_protection_types(self): @@ -687,9 +689,17 @@ class HatariConfigMapping(ConfigStore): self._change_option("--aspect %s" % str(value)) # ------------ max window size --------------- + def set_desktop_size(self, w, h): + self._desktop_w = w + self._desktop_h = h + def get_max_size(self): w = self.get("[Screen]", "nMaxWidth") h = self.get("[Screen]", "nMaxHeight") + # default to desktop size? + if not (w or h): + w = self._desktop_w + h = self._desktop_h return (w, h) def set_max_size(self, w, h):