summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/Brush.cpp3
-rw-r--r--src/graphics/OpenGLGraphics.cpp5
-rw-r--r--src/graphics/Renderer.cpp3
-rw-r--r--src/graphics/Renderer.h3
4 files changed, 6 insertions, 8 deletions
diff --git a/src/game/Brush.cpp b/src/game/Brush.cpp
index e52febb..5341f60 100644
--- a/src/game/Brush.cpp
+++ b/src/game/Brush.cpp
@@ -16,6 +16,7 @@ void Brush::RenderRect(Renderer * ren, ui::Point position1, ui::Point position2)
position1.X += width;
width *= -1;
}
+
ren->xor_line(position1.X, position1.Y, position1.X+width, position1.Y);
ren->xor_line(position1.X, position1.Y+height, position1.X+width, position1.Y+height);
ren->xor_line(position1.X+width, position1.Y+1, position1.X+width, position1.Y+height-1);
@@ -39,4 +40,4 @@ void Brush::RenderPoint(Renderer * ren, ui::Point position)
void Brush::RenderFill(Renderer * ren, ui::Point position)
{
-} \ No newline at end of file
+}
diff --git a/src/graphics/OpenGLGraphics.cpp b/src/graphics/OpenGLGraphics.cpp
index b6dbe7f..4167305 100644
--- a/src/graphics/OpenGLGraphics.cpp
+++ b/src/graphics/OpenGLGraphics.cpp
@@ -1,14 +1,15 @@
#include "Graphics.h"
#include "font.h"
#include <pthread.h>
+#ifdef GetUserName
#undef GetUserName //God dammit microsoft!
-
+#endif
#ifdef OGLI
static pthread_mutex_t gMutex = PTHREAD_MUTEX_INITIALIZER;
Graphics::Graphics():
-sdl_scale(1)
+ sdl_scale(1)
{
if(gMutex == PTHREAD_MUTEX_INITIALIZER)
pthread_mutex_init (&gMutex, NULL);
diff --git a/src/graphics/Renderer.cpp b/src/graphics/Renderer.cpp
index 6c1a31b..c0e0455 100644
--- a/src/graphics/Renderer.cpp
+++ b/src/graphics/Renderer.cpp
@@ -31,9 +31,6 @@ extern "C"
#define VIDYRES YRES
#endif
-#ifdef OGLR
-#define drawrect(args) g->drawrect(args)
-#endif
void Renderer::RenderBegin()
{
diff --git a/src/graphics/Renderer.h b/src/graphics/Renderer.h
index cc7debe..606dbc8 100644
--- a/src/graphics/Renderer.h
+++ b/src/graphics/Renderer.h
@@ -85,7 +85,7 @@ public:
void checkShader(GLuint shader, char * shname);
void checkProgram(GLuint program, char * progname);
void loadShaders();
-#else
+#endif
pixel * vid;
pixel * persistentVid;
pixel * warpVid;
@@ -111,7 +111,6 @@ public:
void gradientrect(int x, int y, int width, int height, int r, int g, int b, int a, int r2, int g2, int b2, int a2);
void draw_image(pixel *img, int x, int y, int w, int h, int a);
-#endif
VideoBuffer DumpFrame();