def create_window(self): bcm.host_init() w, h = bcm.graphics_get_display_size(0) Logger.debug('Window: Actual display size: {}x{}'.format(w, h)) self._size = w, h self._create_window(w, h) self._create_egl_context(self.win, 0) super(WindowEglRpi, self).create_window()
def create_window(self, *args): bcm.host_init() w, h = bcm.graphics_get_display_size(self._rpi_dispmanx_id) Logger.debug("Window: Actual display size: {}x{}".format(w, h)) self._size = w, h self._create_window(w, h) self._create_egl_context(self.win, 0) super(WindowEglRpi, self).create_window()