From e8ec6a8ffb70f10cfa60e375fd540452fa5074f1 Mon Sep 17 00:00:00 2001 From: Gabriel Ravier Date: Fri, 31 Jan 2020 07:43:51 +0100 Subject: [PATCH] Optimize Backend_Blit a bit --- src/Backends/Rendering/Software.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Backends/Rendering/Software.cpp b/src/Backends/Rendering/Software.cpp index 17666c27..e1b40df1 100644 --- a/src/Backends/Rendering/Software.cpp +++ b/src/Backends/Rendering/Software.cpp @@ -7,6 +7,7 @@ #include "SDL.h" #include "../../WindowsWrapper.h" +#include "../../Attributes.h" #include "../../Resource.h" @@ -156,7 +157,7 @@ void Backend_UnlockSurface(Backend_Surface *surface, unsigned int width, unsigne (void)height; } -void Backend_Blit(Backend_Surface *source_surface, const RECT *rect, Backend_Surface *destination_surface, long x, long y, BOOL colour_key) +ATTRIBUTE_HOT void Backend_Blit(Backend_Surface *source_surface, const RECT *rect, Backend_Surface *destination_surface, long x, long y, BOOL colour_key) { if (source_surface == NULL || destination_surface == NULL) return;