aboutsummaryrefslogtreecommitdiff
path: root/saga/render.cpp
diff options
context:
space:
mode:
authorJonathan Gray2004-08-01 12:06:12 +0000
committerJonathan Gray2004-08-01 12:06:12 +0000
commitc8d90189093bb270a9ce1abf7bd47e125a7732bf (patch)
treeef331b8e59ddf9530d90b64c9b1c545c4098dd85 /saga/render.cpp
parent0bbeb61f5e74437c2105b0aff042caeacb34bc8d (diff)
downloadscummvm-rg350-c8d90189093bb270a9ce1abf7bd47e125a7732bf.tar.gz
scummvm-rg350-c8d90189093bb270a9ce1abf7bd47e125a7732bf.tar.bz2
scummvm-rg350-c8d90189093bb270a9ce1abf7bd47e125a7732bf.zip
init _gfx in a less hacky manner
svn-id: r14420
Diffstat (limited to 'saga/render.cpp')
-rw-r--r--saga/render.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/saga/render.cpp b/saga/render.cpp
index 6e67305667..31fb51ab56 100644
--- a/saga/render.cpp
+++ b/saga/render.cpp
@@ -49,16 +49,18 @@ int Render::reg(void) {
return R_SUCCESS;
}
-Render::Render(SagaEngine *vm, OSystem *system) : _vm(vm), _system(system), _initialized(false) {
+Render::Render(SagaEngine *vm, OSystem *system, Gfx *gfx) {
+ _vm = vm;
+ _system = system;
+ _gfx = gfx;
+ _initialized = false;
+
R_GAME_DISPLAYINFO disp_info;
int tmp_w, tmp_h, tmp_bytepp;
// Initialize system graphics
GAME_GetDisplayInfo(&disp_info);
- _vm->_gfx = new Gfx(system, disp_info.logical_w, disp_info.logical_h);
- _gfx = _vm->_gfx;
-
// Initialize FPS timer callback
g_timer->installTimerProc(&fpsTimerCallback, 1000000, this);