Mail Archives: djgpp/1995/06/22/12:16:31
Fixed it... the bug was actually so obvious I overlooked it ten times. I
was using struct the_screen for screen and buffer, and should have had two
separate structs (with and without buffers).
For those who were wondering, I use pointers rather than memcpy() for
speed purposes. Function calls generate overhead. That's also why I made
putpixel a macro instead of a function.
Now I have another problem: graphics code from djgpp works fine in DOS,
but in Windows generates general protection faults (from go32, not from
windows).
--
.*. "Clouds are not spheres, mountains are not cones, coastlines are not
-() < circles, and bark is not smooth, nor does lightning travel in a
`*' straight line." ,------------------------------------------------
-- B. Mandelbrot | Paul Derbyshire (PGD) ao950 AT freenet DOT carleton DOT ca
- Raw text -