³ò
~×YKc           @   s  d  d k  Z  d  d k Z d e f d „  ƒ  YZ e e  ƒ Z e e  i ƒ e _ e e  i ƒ e _ e e  i ƒ e _ d a	 d a
 d d d „ Z e Z d e i f d „  ƒ  YZ d „  Z e Z e d	 „ Z e Z d
 „  Z e Z d „  Z e Z d „  Z e Z d „  Z e Z d „  Z e Z d S(   iÿÿÿÿNt   ModuleProxyc           B   s   e  Z d  „  Z RS(   c         C   s   |  i  i | i  ƒ d  S(   N(   t   __dict__t   update(   t   selft   module(    (    s>   D:\Version 1-0-7\Games\Katawa Shoujo\renpy\display\pgrender.pyt   __init__   s    (   t   __name__t
   __module__R   (    (    (    s>   D:\Version 1-0-7\Games\Katawa Shoujo\renpy\display\pgrender.pyR       s   i    c         C   sI   t  i i |  | | ƒ } t  i d ƒ } | i | ƒ a | i | ƒ a | S(   sR   
    Sets the mode of the pygame screen, and creates the sample
    surfaces.
    i
   (   i
   i
   (   t   opygamet   displayt   set_modet   Surfacet   convert_alphat   sample_alphat   convertt   sample_noalpha(   t
   resolutiont   flagst   deptht   rvt   s(    (    s>   D:\Version 1-0-7\Games\Katawa Shoujo\renpy\display\pgrender.pyR
   ,   s
    	R   c           B   s/   e  Z d  Z d d „ Z d d „ Z d „  Z RS(   s_   
    This allows us to wrap around pygame's surface, to change
    its mode, as necessary.
    c         C   s   t  |  t ƒ S(   N(   t   copy_surface_unscaledt   True(   R   t   surface(    (    s>   D:\Version 1-0-7\Games\Katawa Shoujo\renpy\display\pgrender.pyR   E   s    c         C   s   t  |  t ƒ S(   N(   t   copy_surfacet   False(   R   R   (    (    s>   D:\Version 1-0-7\Games\Katawa Shoujo\renpy\display\pgrender.pyR   H   s    c         C   s   t  |  |  ƒ S(   N(   R   (   R   (    (    s>   D:\Version 1-0-7\Games\Katawa Shoujo\renpy\display\pgrender.pyt   copyK   s    N(   R   R   t   __doc__t   NoneR   R   R   (    (    (    s>   D:\Version 1-0-7\Games\Katawa Shoujo\renpy\display\pgrender.pyR   ?   s   c         C   s¬   |  \ } } t  | t i ƒ o | i ƒ  d } n | o
 t } n t } | d j o t i d t i d ƒ } n t | d | d f d | ƒ } | i d d | | f ƒ S(   sÕ   
    Constructs a new surface. The allocated surface is actually a subsurface
    of a surface that has a 1 pixel border in all directions.

    `alpha` - True if the new surface should have an alpha channel.
    i   i   i    i    i   N(   i   i   (	   t
   isinstanceR   R   t	   get_masksR   R   R   t   SRCALPHAt
   subsurface(   t   .0t   alphat   widtht   heightt   samplet   surf(    (    s>   D:\Version 1-0-7\Games\Katawa Shoujo\renpy\display\pgrender.pyR   O   s   
 c         C   sO   t  |  i ƒ  | ƒ } t i i i i ƒ  | i |  d ƒ t i i i i ƒ  | S(   s(   
    Creates a copy of the surface.
    i    (   i    i    (	   t   surface_unscaledt   get_sizet   renpyR	   t   rendert	   blit_lockt   acquiret   blitt   release(   R&   R"   R   (    (    s>   D:\Version 1-0-7\Games\Katawa Shoujo\renpy\display\pgrender.pyR   j   s
    c         C   s   t  i i |  | ƒ } t | ƒ S(   N(   R   t   imaget   loadR   (   t   ft   filenameR&   (    (    s>   D:\Version 1-0-7\Games\Katawa Shoujo\renpy\display\pgrender.pyt
   load_image|   s    c         C   s"   t  i i |  | | ƒ }  t |  ƒ S(   N(   R   t	   transformt   flipR   (   R&   t
   horizontalt   vertical(    (    s>   D:\Version 1-0-7\Games\Katawa Shoujo\renpy\display\pgrender.pyR5   …   s    c         C   s"   t  i i |  | | ƒ }  t |  ƒ S(   N(   R   R4   t   rotozoomR   (   R&   t   anglet   zoom(    (    s>   D:\Version 1-0-7\Games\Katawa Shoujo\renpy\display\pgrender.pyR8   Œ   s    c         C   s"   t  i i |  | ƒ }  t |  |  ƒ S(   N(   R   R4   t   scaleR   (   R&   t   size(    (    s>   D:\Version 1-0-7\Games\Katawa Shoujo\renpy\display\pgrender.pyt   transform_scale”   s    c         C   s   t  i i |  | ƒ }  t |  ƒ S(   N(   R   R4   t   rotateR   (   R&   R9   (    (    s>   D:\Version 1-0-7\Games\Katawa Shoujo\renpy\display\pgrender.pyt   transform_rotate›   s    (   t   pygameR)   t   objectR    R   R	   R4   R/   R   R   R   R
   t   set_mode_unscaledR   R   R'   R   R   R   R3   t   load_image_unscaledR5   t   flip_unscaledR8   t   rotozoom_unscaledR=   t   transform_scale_unscaledR?   t   transform_rotate_unscaled(    (    (    s>   D:\Version 1-0-7\Games\Katawa Shoujo\renpy\display\pgrender.pys   <module>   s2   						