Mercurial > sdl-ios-xcode
comparison src/video/SDL_stretch.c @ 2828:7e5ff6cd05bf
Added very slow software scaling to the X11 renderer
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 03 Dec 2008 12:10:51 +0000 |
parents | 8055185ae4ed |
children | 99210400e8b9 |
comparison
equal
deleted
inserted
replaced
2827:aec4399c507a | 2828:7e5ff6cd05bf |
---|---|
171 | 171 |
172 /* Perform a stretch blit between two surfaces of the same format. | 172 /* Perform a stretch blit between two surfaces of the same format. |
173 NOTE: This function is not safe to call from multiple threads! | 173 NOTE: This function is not safe to call from multiple threads! |
174 */ | 174 */ |
175 int | 175 int |
176 SDL_SoftStretch(SDL_Surface * src, SDL_Rect * srcrect, | 176 SDL_SoftStretch(SDL_Surface * src, const SDL_Rect * srcrect, |
177 SDL_Surface * dst, SDL_Rect * dstrect) | 177 SDL_Surface * dst, const SDL_Rect * dstrect) |
178 { | 178 { |
179 int src_locked; | 179 int src_locked; |
180 int dst_locked; | 180 int dst_locked; |
181 int pos, inc; | 181 int pos, inc; |
182 int dst_width; | 182 int dst_width; |