mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 14:43:20 +00:00
Fixed build
This commit is contained in:
parent
1cda789a37
commit
ac2c834021
1 changed files with 2 additions and 2 deletions
|
|
@ -927,8 +927,8 @@ static bool SW_RunCommandQueue(SDL_Renderer *renderer, SDL_RenderCommand *cmd, v
|
|||
if (drawstate.viewport &&
|
||||
(drawstate.viewport->x || drawstate.viewport->y) &&
|
||||
(copydata->scale_x > 0.0f && copydata->scale_y > 0.0f)) {
|
||||
copydata->dstrect.x += drawstate.viewport->x / copydata->scale_x;
|
||||
copydata->dstrect.y += drawstate.viewport->y / copydata->scale_y;
|
||||
copydata->dstrect.x += (int)(drawstate.viewport->x / copydata->scale_x);
|
||||
copydata->dstrect.y += (int)(drawstate.viewport->y / copydata->scale_y);
|
||||
}
|
||||
|
||||
SW_RenderCopyEx(renderer, surface, cmd->data.draw.texture, ©data->srcrect,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue