From d158280425efac5f4ec72e00fb2b7389cdfb5a75 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 24 Feb 2004 22:39:42 +0000 Subject: the OSystem changes we discussed on the ML (note: renaming of the existing OSystem API is not yet finished); porters will have to fix their ports to get them to compile again svn-id: r13036 --- sword2/driver/d_draw.cpp | 2 +- sword2/driver/rdwin.cpp | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'sword2') diff --git a/sword2/driver/d_draw.cpp b/sword2/driver/d_draw.cpp index f4462f695f..934e82bfde 100644 --- a/sword2/driver/d_draw.cpp +++ b/sword2/driver/d_draw.cpp @@ -39,7 +39,7 @@ Graphics::Graphics(Sword2Engine *vm, int16 width, int16 height) if (!_buffer) error("Could not initialise display"); - _vm->_system->init_size(width, height); + _vm->_system->initSize(width, height); _gridWide = width / CELLWIDE; _gridDeep = height / CELLDEEP; diff --git a/sword2/driver/rdwin.cpp b/sword2/driver/rdwin.cpp index 28f00003d8..cf7f5f0ff9 100644 --- a/sword2/driver/rdwin.cpp +++ b/sword2/driver/rdwin.cpp @@ -147,10 +147,7 @@ void Graphics::updateDisplay(bool redrawScene) { */ void Graphics::setWindowName(const char *windowName) { - OSystem::Property prop; - - prop.caption = windowName; - _vm->_system->property(OSystem::PROP_SET_WINDOW_CAPTION, &prop); + _vm->_system->setWindowCaption(windowName); } } // End of namespace Sword2 -- cgit v1.2.3