Fix transitive includes in GraphicsUtil.cpp

I ran Include What You Use on the file, and a BUNCH of transitive
includes showed up.

colourTransform is used in the file, so GraphicsUtil.h needs to be
included. libc floor() is used in the file, so math.h needs to be
included (I'm removing this next...). NULL is used, so stddef.h. And
stdlib.h is used because we use rand() directly instead of going through
fRandom(). Speaking of which, we use fRandom(), so Maths.h needs to be
included, too.
This commit is contained in:
Misa authored and Ethan Lee committed 2021-03-06 16:01:29 -05:00
1 parent c1572de9e2
commit acfe4c294d
1 file changed
+8
+8
View File
@@ -1,4 +1,12 @@
#include "GraphicsUtil.h"
#include <math.h>
#include <SDL.h>
#include <stddef.h>
#include <stdlib.h>
#include "Graphics.h"
#include "Maths.h"