Original Post
Hi everyone. I'd like to know how could I draw a image (image.png) the has 32x32 pixels in a SDL screen with a different size. Particularlly in percentage. Instead of drawing a 32x32 pixels image in the screen, I'd like to draw it as a 20%x20% of the screen....so I can draw 25 images on the screen, no matter what resolution I'm using and how large/small my image is. I'm making my own game, and that would be usefull since it's not a full screen game, and it will have variable resolution. For a person that has 800x600, the image might appear as 32x32 pixel, but for someone that uses 1600x1200, double the original resolution, I must have the image as 64x64 pixels, so the sight of view is the same. The way I thought of doing that was drawing it as % of the screen, instead of pixels. So, if anyone can help me with that, or maybe with another solution, I'd be gratefull. Thanks in advance, Emilio.