Re: Limit number of DirectDrawClipper_SetClipList FIXMEs

2004-08-21 Thread James Hawkins
> the program starts, but the difference between this and a regular > non-static variable is that this static variable holds whatever value > it contains That wasnt very clear so I'll try to explain better. The bottom line is that the value of the static variable is retained between repeated fun

Re: Limit number of DirectDrawClipper_SetClipList FIXMEs

2004-08-21 Thread James Hawkins
Tobias wrote: > > +if (warned++ < 10 && lprgn != NULL) Stefan wrote: > for me this looks like > > if (0 < 10 && lprgn != NULL) The variable 'warned' doesn't actually turn out to be zero all of the time. It is a static variable, so it is initialized once to zero when the program starts,

Re: Limit number of DirectDrawClipper_SetClipList FIXMEs

2004-08-21 Thread Andreas Mohr
Hi, On Sat, Aug 21, 2004 at 11:08:09AM +0200, Stefan Leichter wrote: > Am Freitag, 20. August 2004 18:37 schrieb Tobias Burnus: > > + > > HRESULT WINAPI Main_DirectDrawClipper_SetClipList( > > -LPDIRECTDRAWCLIPPER iface,LPRGNDATA lprgn,DWORD pdwSize > > +LPDIRECTDRAWCLIPPER iface,LPRGNDA

Re: Limit number of DirectDrawClipper_SetClipList FIXMEs

2004-08-21 Thread Stefan Leichter
Am Freitag, 20. August 2004 18:37 schrieb Tobias Burnus: > + > HRESULT WINAPI Main_DirectDrawClipper_SetClipList( > -LPDIRECTDRAWCLIPPER iface,LPRGNDATA lprgn,DWORD pdwSize > +LPDIRECTDRAWCLIPPER iface,LPRGNDATA lprgn,DWORD pdwFlag > ) { > ICOM_THIS(IDirectDrawClipperImpl,iface);