aboutsummaryrefslogtreecommitdiff
path: root/engines/tony/gfxcore.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2012-05-13 22:34:40 +1000
committerPaul Gilbert2012-05-13 22:34:40 +1000
commit546f47ddcee07b5bd7ecad5f25f4bb022944e234 (patch)
treef3b6953eaf877174014fc40268ad9084f1e3327b /engines/tony/gfxcore.cpp
parent35143eae094b713524ef677412befdc4c766df04 (diff)
downloadscummvm-rg350-546f47ddcee07b5bd7ecad5f25f4bb022944e234.tar.gz
scummvm-rg350-546f47ddcee07b5bd7ecad5f25f4bb022944e234.tar.bz2
scummvm-rg350-546f47ddcee07b5bd7ecad5f25f4bb022944e234.zip
TONY: Beginnings of refactoring Globals into their own class
Diffstat (limited to 'engines/tony/gfxcore.cpp')
-rw-r--r--engines/tony/gfxcore.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/tony/gfxcore.cpp b/engines/tony/gfxcore.cpp
index 49dd36cfe7..0c5ffa8096 100644
--- a/engines/tony/gfxcore.cpp
+++ b/engines/tony/gfxcore.cpp
@@ -47,6 +47,7 @@
#include "tony/gfxengine.h"
#include "tony/mpal/mpalutils.h"
+#include "tony/tony.h"
namespace Tony {
@@ -1437,7 +1438,7 @@ void RMGfxSourceBuffer8RLEWordAB::RLEDecompressLine(uint16 *dst, byte *src, int
int i, n;
int r, g, b, r2, g2, b2;
- if (!bCfgTransparence) {
+ if (!GLOBALS.bCfgTransparence) {
RMGfxSourceBuffer8RLEWord::RLEDecompressLine(dst, src, nStartSkip, nLength);
return;
}
@@ -1799,7 +1800,7 @@ void RMGfxSourceBuffer8RLEByteAA::Draw(CORO_PARAM, RMGfxTargetBuffer &bigBuf, RM
CORO_BEGIN_CODE(_ctx);
CORO_INVOKE_2(RMGfxSourceBuffer8RLE::Draw, bigBuf, prim);
- if (bCfgAntiAlias)
+ if (GLOBALS.bCfgAntiAlias)
DrawAA(bigBuf,prim);
CORO_END_CODE;
@@ -1837,7 +1838,7 @@ void RMGfxSourceBuffer8RLEWordAA::Draw(CORO_PARAM, RMGfxTargetBuffer &bigBuf, RM
CORO_BEGIN_CODE(_ctx);
CORO_INVOKE_2(RMGfxSourceBuffer8RLE::Draw, bigBuf, prim);
- if (bCfgAntiAlias)
+ if (GLOBALS.bCfgAntiAlias)
DrawAA(bigBuf,prim);
CORO_END_CODE;