Example #1
0
 def restore_mode(self):
     quartz.CGDisplaySetDisplayMode(self._cg_display_id,
                                    self._default_mode.cgmode, None)
     quartz.CGDisplayRelease(self._cg_display_id)
Example #2
0
 def set_mode(self, mode):
     assert mode.screen is self
     quartz.CGDisplayCapture(self._cg_display_id)
     quartz.CGDisplaySetDisplayMode(self._cg_display_id, mode.cgmode, None)
     self.width = mode.width
     self.height = mode.height