Switching resulotion (SDL)
How would I do if I want to change the resulotion of my game window and have the sprites the same size as they were before. Well they don't get smaller, but it looks like it. Do I have to make three (if I have three resulotions for the user to chose from) versions of all sprites and load in the right sprite for the right mode when the user change the resulotion? //walle
Quote:Yes, or you could use some other library to scale them down automatically for you (e.g. SDL_image), barring some blurriness.
Do I have to make three (if I have three resulotions for the user to chose from) versions of all sprites and load in the right sprite for the right mode when the user change the resulotion?
- ben
- Ben
Quote:
Original post by carb Quote:Yes, or you could use some other library to scale them down automatically for you (e.g. SDL_image), barring some blurriness.
Do I have to make three (if I have three resulotions for the user to chose from) versions of all sprites and load in the right sprite for the right mode when the user change the resulotion?
SDL_image doesn't scale images. It just loads images of different file types. SDL_gfx, on the other hand, does. I haven't tried it, but you could blit to the screen buffer SDL_Surface image and then scale that buffer down to the screen resolution and then flip using that screen buffer. I made a DevPak for SDL_gfx if you need it.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement