Graphic Problem...

This is a discussion on Graphic Problem... within the Game Programming forums, part of the General Programming Boards category; I am writing a chess game for my school project..(Console game).. i am using BGI graphics, mouse support and bitmapsupport... ...

Graphic Problem...

I am writing a chess game for my school project..(Console game).. i am using BGI graphics, mouse support and bitmapsupport... My game is pretty built now.. the interface, move validation, mouse movments etc.. but the problem is with the image quality.. the images i have stored are very small and is 24bit BMP... they look good on paint.. but not on the console.. Here is a part of my code which reads and displays the image on the screen.... Help me display the image better..

I can't tell exactly what's going on, but the problem could be that 'k' isn't getting set to 24 bit color depth, which is what you'll need to at least have if you're bitmaps are 24bit. So try setting the color depth to 24bit (or possibly 32bit) to see if the bitmap quality is better.