Path: chuka.playstation.co.uk!news From: "grim" Newsgroups: scee.yaroze.programming.2d_graphics Subject: GsIMAGE pmode 8 Date: 1 Apr 1997 21:51:59 GMT Organization: froth kid Lines: 22 Message-ID: <01bc289b$f6314fc0$c793989e@fourny.demon.co.uk> NNTP-Posting-Host: fourny.demon.co.uk X-Newsreader: Microsoft Internet News 4.70.1155 According to the manual, there are valid image pmodes of 0 to 4. I have created a TIM file from a BMP using TIMUtil, with 4 bit CLUT data and load it in on the heap using MWbload (codewarrior function). The correct number of bytes load in. Then when I do GsGetTimInfo on the pointer + 4 bytes, the image structure passed back has a pmode of 8; i would have expected 0. Every other parameter is just as I set it in TIMutil, px py pw etc. I set a rectangle to the parameters in the TIM (again correct with the debugger) and pass a valid pointer (image.pixel) to LoadImage, which causes a bus error when I call it. I have already called setvideomode, gsinitgraph and gsdefdispbuff Everything I pass to LoadImage seems to be right, the only thing thats bothering me is this pmode of 8. Is this actually a valid pmode or are things getting corrupted somewhere. Can anyone think of anything obvious I'm not doing right? thanks graeme