PDA

View Full Version : Capturing screen problem



ssaunders
04-09-2001, 12:40 AM
When i capture the screen using glReadPixels it works fine for the size of window that opens initially, but if I resize the window at all, I get a diagonal line across the image, the image on the left of which is the right hand edge of the image.

Any ideas on what is causing this would be greatly appreciated.

Thanks,
Steve

ssaunders
04-09-2001, 01:20 AM
Ive narrowed it down a bit. If the width of the screen is divisible by 4 then the image works properly, otherwise it doesnt...is this something im gonna have to live with ?

Thanks,
Steve

j
04-09-2001, 06:40 AM
Could it be something to do with the alignment of the data? I think the .bmp format specifies that all scanlines end on a 4 byte boundary.

j