Commit 04e76499ea8c22d93e5e184170f04642723725a5

Sam Lantinga 2017-08-14T20:37:07

Fixed build warning

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/render/SDL_render.c b/src/render/SDL_render.c
index 942a719..71f707c 100644
--- a/src/render/SDL_render.c
+++ b/src/render/SDL_render.c
@@ -2178,7 +2178,7 @@ SDL_BlendOperation
 SDL_GetBlendModeAlphaOperation(SDL_BlendMode blendMode)
 {
     blendMode = SDL_GetLongBlendMode(blendMode);
-    return (SDL_BlendFactor)(((Uint32)blendMode >> 16) & 0xF);
+    return (SDL_BlendOperation)(((Uint32)blendMode >> 16) & 0xF);
 }
 
 /* vi: set ts=4 sw=4 expandtab: */