Original Post
I am using the bitmap loading function from Tricks of the Windows game Programming Gurus. I was loading up a 640x480 tileset and then copying that to an offscreen plain surface before calculating the x,y coordinates for the source rectangle (depending on where the actual tile i wanted to draw was)I wanted to blit.
Everything was going fine until i took a closer look at the tiles I was drawing to the screen. For some reason the program doesnt want to draw the top row of pixels or the left most column of pixels.
I decided to draw the whole tileset to the screen. On the tileset (in photoshop) I drew a line of yellow pixels down the left hand side and across the top before i ran the program.
The yellow pixels dont appear where they are supposed to. The top line of yellow pixels just vanishes and the left line of yellow pixels appears as the right most line (suggesting that the program is kind of wrapping the bitmap round -if that makes any sense)
I have spent 3 days continuously searching for a solution. I have gone over and over all the dest rect''s and source rect''s and anywhere I can think of to no avail so I have basically eliminated every possibility except for where it loads in the bitmap.
Sorry for the long post but I have tried everything I could think of before posting this question. If anyone can help or give me ideas i would really, really appreciative.
Thanks for your time
Just my thoughts take them as you will.
"People spend too much time thinking about the past, whatever else it is, its gone"-Mel Gibson, Man Without A Face