Skip to content

Commit

Permalink
Fix surface clipping
Browse files Browse the repository at this point in the history
  • Loading branch information
glebm committed Mar 24, 2021
1 parent 474a75f commit 2fab0b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdlutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ void SDL_utils::applyPpuScaledSurface(const Sint16 p_x, const Sint16 p_y, SDL_Su

void SDL_utils::applySurface(const Sint16 p_x, const Sint16 p_y, SDL_Surface* p_source, SDL_Surface* p_destination, SDL_Rect *p_clip)
{
return applyPpuScaledSurface(p_x * screen.ppu_x, p_y * screen.ppu_y, p_source, p_destination);
return applyPpuScaledSurface(p_x * screen.ppu_x, p_y * screen.ppu_y, p_source, p_destination, p_clip);
}

TTF_Font *SDL_utils::loadFont(const std::string &p_font, const int p_size)
Expand Down

0 comments on commit 2fab0b0

Please sign in to comment.