#NEWLINE# def update_view_size( self ) : #NEWLINE# #INDENT# if ( self . viewport is not None ) : #NEWLINE# #INDENT# ( self . view_w , self . view_h ) = ( self . viewport . width , self . viewport . height ) #NEWLINE# ( self . view_x , self . view_y ) = getattr ( self . viewport , 'position' , ( 0 , 0 ) ) #NEWLINE# if ( not director . autoscale ) : #NEWLINE# #INDENT# self . _scissor_flat = ( self . view_x , self . view_y , self . view_w , self . view_h ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ( w , h ) = director . get_window_size ( ) #NEWLINE# sx = ( director . _usable_width / w ) #NEWLINE# sy = ( director . _usable_height / h ) #NEWLINE# self . _scissor_flat = ( int ( ( self . view_x * sx ) ) , int ( ( self . view_y * sy ) ) , int ( ( self . view_w * sx ) ) , int ( ( self . view_h * sy ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if self . autoscale : #NEWLINE# #INDENT# ( self . view_w , self . view_h ) = director . get_window_size ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . view_w = director . _usable_width #NEWLINE# self . view_h = director . _usable_height