# SDL: Note that SDL\_BlitSurface() was renamed SDL\_BlitSurfaceScaled()

**URL:** <https://discourse.libsdl.org/t/sdl-note-that-sdl-blitsurface-was-renamed-sdl-blitsurfacescaled/51492>\
**Category:** SDL Commits\
**Created:** [May 24, 2024, 12:34pm UTC](https://discourse.libsdl.org/t/sdl-note-that-sdl-blitsurface-was-renamed-sdl-blitsurfacescaled/51492 "2024-05-24T12:34:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SDLPushPostBot](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/sdlpushpostbot/32/4370_2.png) [@SDLPushPostBot](https://discourse.libsdl.org/u/SDLPushPostBot)\
**Post date:** [May 24, 2024, 12:34pm UTC](https://discourse.libsdl.org/t/sdl-note-that-sdl-blitsurface-was-renamed-sdl-blitsurfacescaled/51492/1 "2024-05-24T12:34:02Z")

</div>

> <https://github.com/libsdl-org/SDL/commit/7a043d9958602632fb0901ce575fa64ce21a0c76>

```diff
From 7a043d9958602632fb0901ce575fa64ce21a0c76 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Fri, 24 May 2024 05:33:51 -0700
Subject: [PATCH] Note that SDL_BlitSurface() was renamed
 SDL_BlitSurfaceScaled()

---
 build-scripts/SDL_migration.cocci | 5 +++++
 docs/README-migration.md | 1 +
 include/SDL3/SDL_oldnames.h | 2 ++
 3 files changed, 8 insertions(+)

diff --git a/build-scripts/SDL_migration.cocci b/build-scripts/SDL_migration.cocci
index 2ac2b44251287..97610f9aa0640 100644
--- a/build-scripts/SDL_migration.cocci
+++ b/build-scripts/SDL_migration.cocci
@@ -3189,3 +3189,8 @@ typedef SDL_Colour, SDL_Color;
 - SDL_MixAudioFormat
 + SDL_MixAudio
   (...)
+@@
+@@
+- SDL_BlitScaled
++ SDL_BlitSurfaceScaled
+ (...)
diff --git a/docs/README-migration.md b/docs/README-migration.md
index b5d7c784ee0dc..89b9cf9b03a5a 100644
--- a/docs/README-migration.md
+++ b/docs/README-migration.md
@@ -1507,6 +1507,7 @@ SDL_SoftStretch() now takes a scale paramater.
 SDL_PixelFormatEnum is used instead of Uint32 for API functions that refer to pixel format by enumerated value.
 
 The following functions have been renamed:
+* SDL_BlitScaled() => SDL_BlitSurfaceScaled()
 * SDL_FillRect() => SDL_FillSurfaceRect()
 * SDL_FillRects() => SDL_FillSurfaceRects()
 * SDL_FreeSurface() => SDL_DestroySurface()
diff --git a/include/SDL3/SDL_oldnames.h b/include/SDL3/SDL_oldnames.h
index e20e6a154bfec..d1a9bade7ce1c 100644
--- a/include/SDL3/SDL_oldnames.h
+++ b/include/SDL3/SDL_oldnames.h
@@ -503,6 +503,7 @@
 #define SDL_strtokr SDL_strtok_r
 
 /* ##SDL_surface.h */
+#define SDL_BlitScaled SDL_BlitSurfaceScaled
 #define SDL_FillRect SDL_FillSurfaceRect
 #define SDL_FillRects SDL_FillSurfaceRects
 #define SDL_FreeSurface SDL_DestroySurface
@@ -1021,6 +1022,7 @@
 #define SDL_strtokr SDL_strtokr_renamed_SDL_strtok_r
 
 /* ##SDL_surface.h */
+#define SDL_BlitScaled SDL_BlitScaled_renamed_SDL_BlitSurfaceScaled
 #define SDL_FillRect SDL_FillRect_renamed_SDL_FillSurfaceRect
 #define SDL_FillRects SDL_FillRects_renamed_SDL_FillSurfaceRects
 #define SDL_FreeSurface SDL_FreeSurface_renamed_SDL_DestroySurface

```
