SDL_SoftStretch函数
已经被函数SDL_BlitScaled()替换。缓冲区进行缩放之后拷贝到目标表面。
extern DECLSPEC int SDLCALL SDL_SoftStretch(SDL_Surface *src, SDL_Rect *srcrect,
SDL_Surface *dst, SDL_Rect *dstrect);
例子:
// // Draw the backup buffer to the screen // dstrect.x = 0; dstrect.y = screenRealY; dstrect.w = gpScreenReal->w; dstrect.h = screenRealHeight; SDL_SoftStretch(gpScreenBak, NULL, gpScreenReal, &dstrect); SDL_UpdateRect(gpScreenReal, 0, 0, gpScreenReal->w, gpScreenReal->h);