#NEWLINE# def _create_window( self , w , h ) : #NEWLINE# #INDENT# dst = bcm . Rect ( 0 , 0 , w , h ) #NEWLINE# src = bcm . Rect ( 0 , 0 , ( w << 16 ) , ( h << 16 ) ) #NEWLINE# display = egl . bcm_display_open ( self . _rpi_dispmanx_id ) #NEWLINE# update = egl . bcm_update_start ( 0 ) #NEWLINE# element = egl . bcm_element_add ( update , display , 0 , dst , src ) #NEWLINE# self . win = egl . NativeWindow ( self , w , h ) #NEWLINE# egl . bcm_update_submit_sync ( update )