
~YKc           @   s   d  d k  Z  e a d a d a d a e e d  Z d d d  Z	 e	 Z
 e	 Z d   Z d   Z d	 e  i i i f d
     YZ d S(   iNi  i,  c         C   s1   t  o | o d Sn t i i i d d  d S(   s,   
    Stops the currently playing movie.
    Nt   channelt   movie(   t
   fullscreent   renpyt   audiot   musict   stop(   t   cleart   only_fullscreen(    (    s;   D:\Version 1-0-7\Games\Katawa Shoujo\renpy\display\video.pyt
   movie_stop&   s    i    c         C   s   t  i i o d Sn | d j	 o
 | a n |  g }  | d j o
 t } n t } |  | d }  t  i i i	 |  d d d | d S(   s'   
    This starts a movie playing. 
    Nii   R    R   t   loop(
   R   t   gamet   less_updatest   Nonet   default_sizet   Truet   FalseR   R   t   play(   t   filenamet   sizet   loopsR
   (    (    s;   D:\Version 1-0-7\Games\Katawa Shoujo\renpy\display\video.pyt   movie_start1   s    
	
c           C   s
   t  a d S(   sU   
    Called early in the interact process, to clear out the fullscreen
    flag.
    N(   R   R   (    (    (    s;   D:\Version 1-0-7\Games\Katawa Shoujo\renpy\display\video.pyt   early_interactK   s    c           C   s-   t  o t i i i d  o t Sn t Sd S(   s   
    This is called each time the screen is redrawn. It helps us decide if
    the movie should be displayed fullscreen or not.
    R   N(   R   R   R   R   t   get_playingR   R   (    (    (    s;   D:\Version 1-0-7\Games\Katawa Shoujo\renpy\display\video.pyt   interactU   s    t   Moviec           B   s8   e  Z d  Z d d d  Z d   Z d   Z d   Z RS(   s=   
    This is a displayable that shows the current movie.
    i   c         K   s#   t  t |   i |   | |  _ d S(   sN   
        @param fps: The framerate that the movie should be shown at.
        N(   t   superR   t   __init__R   (   t   selft   fpsR   t
   properties(    (    s;   D:\Version 1-0-7\Games\Katawa Shoujo\renpy\display\video.pyR   f   s    c         C   s   |  i  } | d  j o
 t } n t i i i d  } t d  j p  t i   | j p t	 | j o/ t i
 i i | t  a | a	 t i d  n | \ } } t i
 i i | |  } | d  j	 o' t i
 i i t  | i t d  n | S(   NR   i    i   (   i    i    i    i   (   i    i    (   R   R   R   R   R   R   R   t   surfacet   get_sizet   surface_filet   displayt   pgrenderR   t   fillt   rendert   Rendert   mutated_surfacet   blit(   R   t   widtht   heightt   stt   atR   t   playingt   rv(    (    s;   D:\Version 1-0-7\Games\Katawa Shoujo\renpy\display\video.pyR%   n   s    	
-c         C   s7   | i  t i i i j o t i i i |  d  n d  S(   Ni    (   t   typeR   R   t   REFRESH_EVENTR"   R%   t   redraw(   R   t   evt   xt   yR+   (    (    s;   D:\Version 1-0-7\Games\Katawa Shoujo\renpy\display\video.pyt   event   s    c         C   s
   t  a d  S(   N(   R   R   (   R   (    (    s;   D:\Version 1-0-7\Games\Katawa Shoujo\renpy\display\video.pyt   per_interact   s    N(   t   __name__t
   __module__t   __doc__R   R   R%   R5   R6   (    (    (    s;   D:\Version 1-0-7\Games\Katawa Shoujo\renpy\display\video.pyR   a   s
   		(   i  i,  (   R   R   R   R   R   R!   R   R   R	   R   t   movie_start_fullscreent   movie_start_displayableR   R   R"   t   coret   DisplayableR   (    (    (    s;   D:\Version 1-0-7\Games\Katawa Shoujo\renpy\display\video.pys   <module>   s   	
	