On 6/27/07, Giel van Schijndel <[EMAIL PROTECTED]> wrote:
> >>> The confuse part  is DisplayBuffer is used to load wrf, .gam and
> >>> other file types.  What has this to do with what your resolution
> >>> is?
....
> Well it seems that this var, "DisplayBuffer", is a global var. I guess
> implemented there as some misguided attempt at saving a few bytes of
> memory. The problem is that this global var is so widely spread, that
> I'm having _a_lot_ of trouble, tracking its state throughout program
> execution. So unfortunately I cannot just rip this var out.

It is no longer used for anything related to "display", and is now
just used as a dumping ground for whatever needs Warzone has for a
large, temporary buffer. I guess the Pumpkin guys wanted to save a few
calls for malloc and free by using it.

In most calls to loadfile() it can be replaced with a pointer that
points to NULL, and that is free()d afterwards.

  - Per

_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev

Reply via email to