summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/RasterGraphics.cpp2
-rw-r--r--src/Renderer.cpp6
2 files changed, 6 insertions, 2 deletions
diff --git a/src/RasterGraphics.cpp b/src/RasterGraphics.cpp
index 31b1b97..a33f771 100644
--- a/src/RasterGraphics.cpp
+++ b/src/RasterGraphics.cpp
@@ -26,7 +26,7 @@ void Graphics::Finalise()
#define VIDXRES XRES+BARSIZE
#define VIDYRES YRES+MENUSIZE
-#define PIXELMOETHODS_CLASS Graphics
+#define PIXELMETHODS_CLASS Graphics
#include "PixelMethods.inc"
#undef VIDYRES
#undef VIDXRES
diff --git a/src/Renderer.cpp b/src/Renderer.cpp
index ef14a41..a5bc471 100644
--- a/src/Renderer.cpp
+++ b/src/Renderer.cpp
@@ -24,13 +24,17 @@ extern "C"
}
#ifndef OGLI
-#define VIDXRES VIDXRES
+#define VIDXRES XRES+BARSIZE
#define VIDYRES YRES+MENUSIZE
#else
#define VIDXRES XRES
#define VIDYRES YRES
#endif
+#ifdef OGLR
+#define drawrect(args) g->drawrect(args)
+#endif
+
void Renderer::clearScreen(float alpha)
{
#ifdef OGLR