[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [paragui-users] PG_Draw::CreateRGBSurface() segfault
From: |
Teunis Peters |
Subject: |
Re: [paragui-users] PG_Draw::CreateRGBSurface() segfault |
Date: |
Thu, 18 Sep 2003 07:28:24 -0700 (PDT) |
On Thu, 18 Sep 2003, H. C. wrote:
> Hi Peter,
>
> PG_Draw::BlitSurface(...) is only a wrapper function; it calls
> SDL_BlitSurface(...) with the difference that it passes the addresses of the
> PG_Rect& arguments.
>
> So if you want to pass NULL to SDL_BlitSurface(...) why don't you just
> utilise *(PG_Rect*)NULL". It doesn't look nice - but it works well and
> there's no need to rewrite all occurrences of PG_Draw::BlitSurface(...) in
> the ParaGUI source.
And the silly reply:
devel-opengl handles this by defining that an all-0s rectangle == NULL
and the even sillier:
my C port which has gone back to pointers for everything has restored NULL
behaviour *g*
G'day, eh? :)
- Teunis