;ς v0@c@sγdZdkZdkZdkZdkTdkZdkZeae ddddƒa ga ea da d„Zd„Zd„Zd„Zd„Zd „Zd „Zd „Zd „Zd „Zd„Zd„Zdd„ZdS(s&graphics class, helps everyone to drawN(s*icCs₯ynd}|o|tO}ntii||ƒatiƒa ti i dƒti ƒdjo t ƒnWn$tij o}tid‚nXtiƒadS(NiisCannot Initialize Graphics(sflagss fullscreens FULLSCREENspygamesdisplaysset_modessizessurfacesget_rectsrectsmouses set_visibles get_bytesizes loadpaletteserrorsmsgsstarssStarssstarobj(ssizes fullscreensflagssmsg((sA/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/gfx.pys initializes cCsDtiƒt@tj}tidj}||jodSndadS(Ni(ssurfaces get_flagss FULLSCREENsoldfullsgamesdisplaysnewfullswantscreentoggle(snewfullsoldfull((sA/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/gfx.pysswitchfullscreen(s  cCsti|ƒdS(N(s dirtyrectssappendsrect(srect((sA/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/gfx.pysdirty2scCsa| oti|ƒnEti|ƒoti|i|ƒƒnti|ƒti|ƒdS(N(srect2s dirtyrectssappendsrect1srects colliderectsunion(srect1srect2((sA/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/gfx.pysdirty26s  cCsti||ƒdS(N(sstarobjserase_tick_drawsbgdsgfx(sbgdsgfx((sA/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/gfx.pys updatestars@scCsΡtiitƒt2to²datio!titii t i t ƒnti tiƒƒ}|itddfƒtiƒ}ttiƒtiƒti|ddfƒtiiƒti|ƒndS(Ni(spygamesdisplaysupdates dirtyrectsswantscreentogglesgameshandlersstarobjserasealls backgroundssyssmoduless__name__sSurfacessurfacesget_sizes screencapturesblitsget_clips clipcaptures initializesset_clip(s clipcaptures screencapture((sA/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/gfx.pysupdateDs !  cCsKtiƒt@ o+|iƒ}|o|i|tƒq=n|iƒSdS(N( ssurfaces get_flagss HWSURFACEsimgs get_colorkeysclears set_colorkeysRLEACCELsconvert(simgsclear((sA/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/gfx.pysoptimize[s  cCst|ƒ}t|ƒSdS(N(sload_rawsnamesimgsoptimize(snamesimg((sA/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/gfx.pysloadis cCs)ti|ƒ}tii|ƒ}|SdS(N(sgames get_resourcesnamesfilespygamesimagesloadsimg(snamesimgsfile((sA/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/gfx.pysload_rawnscCs‡ttidƒƒ}g}xX|iƒdD]F}gi}|i ƒD]}|t |ƒƒqF~}|i|ƒq,Wt i|ƒdS(Ns solarwolf.pali(sopensgames get_resourcesfilespals readlinesslinesappends_[1]ssplitsxsintsvalsssurfaces set_palette(s_[1]sfilesvalssxslinespal((sA/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/gfx.pys loadpalettets3cCs|\}}|\}} | |jo| |f\}} nd|} || }gi} t || || | d|ƒD]?} ||| jo | jno| t | |ƒƒqyqy~ }gi} t |||| | d|ƒD]C} || jo| |jno| t| d| ƒƒqλqλ~ } xAt|| ƒD]0\}}|i|||d||dfƒqGWdS(sωdrawvertdashline dstsurf = surface on which line is drawn startpos, endpos = (x0, y0), (x0, y1) of line color = RGB(A) of line; between dashes is nothing dashsize = pixel length of on, and of off sections offset = where to startiiN(sstartpossxsy0sendpossy1sdashsizesperiodsoffsetsappends_[1]srangesysmaxsstartssminsstopsszipsbsesdstsurfsfillscolor(sdstsurfsstartpossendposscolorsdashsizesoffsetsbsy0sstartssperiodsstopss_[1]sysy1sxse((sA/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/gfx.pysdrawvertdashlines     rv cCs|\}} |\}} ||jo||f\}}nd|} || }gi} t || ||| d|ƒD]?} ||| jo |jno| t | |ƒƒqyqy~ }gi} t ||||| d|ƒD]C} || jo||jno| t| d|ƒƒqλqλ~ } xAt|| ƒD]0\}}|i||| ||ddfƒqGWdS(sωdrawhorzdashline dstsurf = surface on which line is drawn startpos, endpos = (x0, y0), (x0, y1) of line color = RGB(A) of line; between dashes is nothing dashsize = pixel length of on, and of off sections offset = where to startiiN(sstartpossx0sysendpossx1sdashsizesperiodsoffsetsappends_[1]srangesxsmaxsstartssminsstopsszipsbsesdstsurfsfillscolor(sdstsurfsstartpossendposscolorsdashsizesoffsetsbsesstartssperiodsstopss_[1]sysxsx1sx0((sA/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/gfx.pysdrawhorzdashline›s     rv cCs'| o|iƒ}n||iƒf}g}|iƒ}|iƒ}|i t ƒ|i t ƒx t d|i ƒ|ƒD]†}ti|ƒ}|i|ddf|df|fƒ|o|i dddfƒn|o|i |ƒn|it|ƒƒq{W|i |ƒ|i |ƒ|SdS(Ni(swidthsimgs get_heightssizesimagess get_alphas origalphas get_colorkeysorigckeys set_colorkeysNones set_alphasranges get_widthsxspygamesSurfacesisblitsappendsoptimize(simgswidths origalphasorigckeysisimagessxssize((sA/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/gfx.pys animstripΉs(    %  (s__doc__ssysspygames pygame.images pygame.localssgamesstarssNonessurfacesRectsrects dirtyrectssstarobjswantscreentoggles initializesswitchfullscreensdirtysdirty2s updatestarssupdatesoptimizesloadsload_raws loadpalettesdrawvertdashlinesdrawhorzdashlines animstrip(sloadsswitchfullscreens animstrips updatestarsspygamesstarssload_rawsupdatessyssgamesdrawvertdashlines initializesoptimizesdirty2sdrawhorzdashlines loadpalettesdirty((sA/mnt/gmirror/ports/games/solarwolf/work/solarwolf-1.5/code/gfx.pys?s*