aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/gfx.cpp
diff options
context:
space:
mode:
authorNipun Garg2019-07-11 00:50:59 +0530
committerEugene Sandulenko2019-09-03 17:17:16 +0200
commit4c20c8be129a2e720341802783109dec6a07c944 (patch)
tree9621e182b227e60fd6882da29e1a574557709b74 /engines/hdb/gfx.cpp
parent0ae4cb1ea7907c7d558cb89ad101f762a0d64c8c (diff)
downloadscummvm-rg350-4c20c8be129a2e720341802783109dec6a07c944.tar.gz
scummvm-rg350-4c20c8be129a2e720341802783109dec6a07c944.tar.bz2
scummvm-rg350-4c20c8be129a2e720341802783109dec6a07c944.zip
HDB: Add Sine and Cosine table
Diffstat (limited to 'engines/hdb/gfx.cpp')
-rw-r--r--engines/hdb/gfx.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/hdb/gfx.cpp b/engines/hdb/gfx.cpp
index 3303a5bed1..ddee59fcb9 100644
--- a/engines/hdb/gfx.cpp
+++ b/engines/hdb/gfx.cpp
@@ -29,11 +29,15 @@ Gfx::Gfx() {
_gfxCache = new Common::Array<GfxCache *>;
_globalSurface.create(kScreenWidth, kScreenHeight, g_hdb->_format);
_pointerDisplayable = 1;
+ _sines = new Common::SineTable(360);
+ _cosines = new Common::CosineTable(360);
_systemInit = false;
}
Gfx::~Gfx() {
delete _gfxCache;
+ delete _sines;
+ delete _cosines;
_globalSurface.free();
}