Skip to main content
GameDev.net gamedev.net
🔒 Locked

Scrolling screen + SDL

Started by riserbar Feb 24, 2008 at 3:41 PM 2 replies 1.2k views
Original Post
riserbar
riserbar
Hi! I wrote a code that scrolls the screen (full screen, 640 x 480 resolution) on a bigger (1280 x 960) SDL_Surface. The problem is that the scrolling is not as fine and smooth as it should be. I notice some random distortion here and there, too. What would be the correct way to do this? :)
Stowelly
Stowelly
are you using "SDL_DOUBLBUF" ? also what method are you using for your scrolling screen?
http://stowelly.co.uk/
riserbar
riserbar
Quote:
Original post by Stowelly
are you using "SDL_DOUBLBUF" ? also what method are you using for your scrolling screen?


Yes, I'm using double buffering. I'm using SDL_BlitSurface to blit the selected region from the large background surface to the screen surface.




iliak
iliak
Here ?
- Iliak -
[ ArcEngine: An open source .Net gaming framework ]
[ Dungeon Eye: An open source remake of Eye of the Beholder II ]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.