[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [paragui-users] small change to PG_FileArchive:LoadSurface
From: |
Alexander Pipelka |
Subject: |
Re: [paragui-users] small change to PG_FileArchive:LoadSurface |
Date: |
18 Apr 2003 13:18:43 +0200 |
Applied, Thanks :))
Alex
PS: Please send patches as attachments (modern mail clients tend to wrap
lines).
Am Don, 2003-04-10 um 14.45 schrieb Keith:
> the changes are to allow you to set the colorkey of the surface if you
> decide to convert the surface to screen format.
>
> --Keith
>
>
>
> diff -r1.3.6.5 pgfilearchive.h
>
> 261a262,263
>
> > static SDL_Surface* LoadSurface(const char* filename,Uint32 colorkey, bool
> convert = false);
>
> >
>
> 308c310,311
>
> <
>
> ---
>
> > static SDL_Surface* LoadSurfaceHelper(const char* filename, bool convert,
> bool ck, Uint32 colorkey);
>
> >
>
>
>
> cvs -z9 diff pgfilearchive.cpp (in directory C:\cvstemp\paragui\src\core\)
>
> diff -r1.2.4.11 pgfilearchive.cpp
>
> 257,258c257
>
> <
>
> < SDL_Surface* PG_FileArchive::LoadSurface(const char* filename, bool
> convert) {
>
> ---
>
> > SDL_Surface* PG_FileArchive::LoadSurfaceHelper(const char* filename, bool
> convert, bool ck, Uint32 colorkey){
>
> 302a302,304
>
> > if(ck)
>
> > SDL_SetColorKey(surface, SDL_SRCCOLORKEY,colorkey);
>
> >
>
> 315a318,324
>
> >
>
> > }
>
> > SDL_Surface* PG_FileArchive::LoadSurface(const char* filename,Uint32
> colorkey, bool convert){
>
> > return LoadSurfaceHelper(filename, convert, true, colorkey);
>
> > }
>
> > SDL_Surface* PG_FileArchive::LoadSurface(const char* filename, bool
> convert) {
>
> > return LoadSurfaceHelper(filename, convert, false, 0);
>
>
>
>
>
>
>
> _______________________________________________
> paragui-users mailing list
> address@hidden
> http://mail.nongnu.org/mailman/listinfo/paragui-users
>