mirror of https://github.com/FreeRDP/FreeRDP
sdl3: fix build with last version of SDL3
This commit is contained in:
parent
d0cfd3b502
commit
3a9a820092
|
@ -184,12 +184,12 @@ bool SdlWindow::blit(SDL_Surface* surface, const SDL_Rect& srcRect, SDL_Rect& ds
|
||||||
return true;
|
return true;
|
||||||
if (!SDL_SetSurfaceClipRect(screen, &dstRect))
|
if (!SDL_SetSurfaceClipRect(screen, &dstRect))
|
||||||
return true;
|
return true;
|
||||||
auto rc = SDL_BlitSurfaceScaled(surface, &srcRect, screen, &dstRect, SDL_SCALEMODE_BEST);
|
if (!SDL_BlitSurfaceScaled(surface, &srcRect, screen, &dstRect, SDL_SCALEMODE_LINEAR))
|
||||||
if (rc != 0)
|
|
||||||
{
|
{
|
||||||
SDL_LogError(SDL_LOG_CATEGORY_RENDER, "SDL_BlitScaled: %s [%d]", sdl_error_string(rc), rc);
|
SDL_LogError(SDL_LOG_CATEGORY_RENDER, "SDL_BlitScaled: %s", SDL_GetError());
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
return rc == 0;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SdlWindow::updateSurface()
|
void SdlWindow::updateSurface()
|
||||||
|
|
Loading…
Reference in New Issue