Xref: news-dnh.mv.net comp.os.msdos.djgpp:504 Newsgroups: comp.os.msdos.djgpp Path: news-dnh.mv.net!mv!news.sprintlink.net!howland.reston.ans.net!news.starnet.net!wupost!news.utdallas.edu!corpgate!bcarh189.bnr.ca!nott!cunews!freenet.carleton.ca!FreeNet.Carleton.CA!ao950 From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire) Subject: Scrolling problem Sender: ao950 AT freenet2 DOT carleton DOT ca (Paul Derbyshire) Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire) Organization: The National Capital FreeNet Date: Thu, 22 Jun 1995 00:52:38 GMT Lines: 18 To: djgpp AT sun DOT soe DOT clarkson DOT edu Dj-Gateway: from newsgroup comp.os.msdos.djgpp 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