From 04a5ff57d07db8607ee4b0768a3f40810d97a5b4 Mon Sep 17 00:00:00 2001 From: Ryan Flegel Date: Wed, 9 Jun 2004 04:43:15 +0000 Subject: [PATCH] - just doing some C++ifying SVN-Revision: 1452 --- src/screen/drawing_context.cpp | 8 ++++---- src/screen/drawing_context.h | 10 ++++++---- src/screen/font.cpp | 5 +++-- src/screen/font.h | 7 ++++--- src/screen/screen.cpp | 14 ++++++++------ src/screen/texture.cpp | 4 +++- src/screen/texture.h | 8 +++++--- 7 files changed, 33 insertions(+), 23 deletions(-) diff --git a/src/screen/drawing_context.cpp b/src/screen/drawing_context.cpp index 480b8bd79..c5903f5ed 100644 --- a/src/screen/drawing_context.cpp +++ b/src/screen/drawing_context.cpp @@ -16,11 +16,11 @@ // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -#include -#include "drawing_context.h" - -#include #include +#include +#include + +#include "drawing_context.h" #include "texture.h" #include "globals.h" #include "font.h" diff --git a/src/screen/drawing_context.h b/src/screen/drawing_context.h index c71fda180..0051301b8 100644 --- a/src/screen/drawing_context.h +++ b/src/screen/drawing_context.h @@ -16,14 +16,16 @@ // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -#ifndef __DRAWINGCONTEXT_H__ -#define __DRAWINGCONTEXT_H__ +#ifndef SUPERTUX_DRAWINGCONTEXT_H +#define SUPERTUX_DRAWINGCONTEXT_H #include #include + +#include "SDL.h" + #include "vector.h" #include "screen.h" -#include class Surface; class Font; @@ -170,5 +172,5 @@ private: DrawingRequests drawingrequests; }; -#endif +#endif /*SUPERTUX_DRAWINGCONTEXT_H*/ diff --git a/src/screen/font.cpp b/src/screen/font.cpp index b0c3ecb93..af159b929 100644 --- a/src/screen/font.cpp +++ b/src/screen/font.cpp @@ -18,8 +18,9 @@ // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. -#include -#include +#include +#include + #include "globals.h" #include "defines.h" #include "screen.h" diff --git a/src/screen/font.h b/src/screen/font.h index 00b504184..5b44f6ed6 100644 --- a/src/screen/font.h +++ b/src/screen/font.h @@ -18,10 +18,11 @@ // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. -#ifndef SUPERTUX_TEXT_H -#define SUPERTUX_TEXT_H +#ifndef SUPERTUX_FONT_H +#define SUPERTUX_FONT_H #include + #include "texture.h" #include "vector.h" @@ -69,5 +70,5 @@ private: int last_char; }; -#endif /*SUPERTUX_TEXT_H*/ +#endif /*SUPERTUX_FONT_H*/ diff --git a/src/screen/screen.cpp b/src/screen/screen.cpp index 8a442b235..a89f0253e 100644 --- a/src/screen/screen.cpp +++ b/src/screen/screen.cpp @@ -18,13 +18,15 @@ // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include -#include -#include -#include -#include +#include +#include +#include +#include + #include -#include -#include + +#include "SDL.h" +#include "SDL_image.h" #ifndef WIN32 #include diff --git a/src/screen/texture.cpp b/src/screen/texture.cpp index c82b10d18..fbb9a101b 100644 --- a/src/screen/texture.cpp +++ b/src/screen/texture.cpp @@ -18,11 +18,13 @@ // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA // 02111-1307, USA. -#include +#include #include #include + #include "SDL.h" #include "SDL_image.h" + #include "texture.h" #include "globals.h" #include "setup.h" diff --git a/src/screen/texture.h b/src/screen/texture.h index e39b3ee8b..469b30912 100644 --- a/src/screen/texture.h +++ b/src/screen/texture.h @@ -21,13 +21,15 @@ #ifndef SUPERTUX_TEXTURE_H #define SUPERTUX_TEXTURE_H -#include #include +#include + #ifndef NOOPENGL -#include +#include "SDL_opengl.h" #endif -#include +#include "SDL.h" + #include "screen.h" #include "vector.h" -- 2.11.0