Re: Something funny with graphics...
- Posted by Liquid-Nitrogen Software <nitrogen_069 at HOTMAIL.COM> May 10, 1999
- 439 views
On Mon, 10 May 1999 18:54:49 -0700, Mike Hurley <mikehurley2 at YAHOO.COM> wrote: >I tried running one of my graphics-library demos in what I call mode 2, >640x480x65k. Problem...the 'bytes_per_line' variable reads 1280, which >is 2*640. That's bad...it makes the stuff smushed on the x-axis. Is >there any way to avoid that? Since you're using a 65K mode, it probably uses 2 bytes per pixel, that's why your bytes_per_line is double what you expected it to be. -Mark.