From 3597f7596d4e8d44e098387ad3b2975e09d9f6d2 Mon Sep 17 00:00:00 2001 From: Einar Johan Trøan Sømåen Date: Wed, 17 Apr 2013 21:02:40 +0200 Subject: WINTERMUTE: Constify _width and _height in BaseRenderer. --- engines/wintermute/ad/ad_inventory_box.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/wintermute/ad/ad_inventory_box.cpp') diff --git a/engines/wintermute/ad/ad_inventory_box.cpp b/engines/wintermute/ad/ad_inventory_box.cpp index 194d975155..4bb0905688 100644 --- a/engines/wintermute/ad/ad_inventory_box.cpp +++ b/engines/wintermute/ad/ad_inventory_box.cpp @@ -120,8 +120,8 @@ bool AdInventoryBox::display() { if (_closeButton) { _closeButton->_posX = _closeButton->_posY = 0; - _closeButton->_width = _gameRef->_renderer->_width; - _closeButton->_height = _gameRef->_renderer->_height; + _closeButton->_width = _gameRef->_renderer->getWidth(); + _closeButton->_height = _gameRef->_renderer->getHeight(); _closeButton->display(); } -- cgit v1.2.3