Commit 5c6c86912d6bea66391ea7d8683d7ea8d54c2b66

Sam Lantinga 2014-07-27T17:43:36

Fixed uninitialized variable in some cases

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/render/software/SDL_draw.h b/src/render/software/SDL_draw.h
index fff462e..2bd8f94 100644
--- a/src/render/software/SDL_draw.h
+++ b/src/render/software/SDL_draw.h
@@ -51,7 +51,7 @@ do { \
 
 #define DRAW_SETPIXEL_BLEND(getpixel, setpixel) \
 do { \
-    unsigned sr, sg, sb, sa; \
+    unsigned sr, sg, sb, sa = 0xFF; \
     getpixel; \
     sr = DRAW_MUL(inva, sr) + r; \
     sg = DRAW_MUL(inva, sg) + g; \