Skip to content

Commit 2fab0b0

Browse files
committed
Fix surface clipping
1 parent 474a75f commit 2fab0b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdlutils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ void SDL_utils::applyPpuScaledSurface(const Sint16 p_x, const Sint16 p_y, SDL_Su
5959

6060
void SDL_utils::applySurface(const Sint16 p_x, const Sint16 p_y, SDL_Surface* p_source, SDL_Surface* p_destination, SDL_Rect *p_clip)
6161
{
62-
return applyPpuScaledSurface(p_x * screen.ppu_x, p_y * screen.ppu_y, p_source, p_destination);
62+
return applyPpuScaledSurface(p_x * screen.ppu_x, p_y * screen.ppu_y, p_source, p_destination, p_clip);
6363
}
6464

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

0 commit comments

Comments
 (0)