1 parent e3e98d6 commit 7e9691aCopy full SHA for 7e9691a
1 file changed
source/ham/recolor.cpp
@@ -2,6 +2,7 @@
2
#include <string.h>
3
#include <algorithm>
4
#include <SDL_timer.h>
5
+#include <SDL_version.h>
6
7
// ----------------------------------------------------------------------------
8
// Basic color manipulation
@@ -139,6 +140,10 @@ void Recolor::SetMode(Hue hue, Mode mode)
139
140
hueAndMode[hue] = (hueAndMode[hue] & HUE_MASK) | ((byte)mode << HUE_BITS);
141
}
142
143
+#if !SDL_VERSION_ATLEAST(2, 0, 18)
144
+#define SDL_GetTicks64 SDL_GetTicks
145
+#endif
146
+
147
byte Recolor::Apply(byte color, byte underlying)
148
{
149
byte hue = hueAndMode[color >> 5] & HUE_MASK;
0 commit comments