diff options
Diffstat (limited to 'engines/wage/macwindow.cpp')
-rw-r--r-- | engines/wage/macwindow.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/engines/wage/macwindow.cpp b/engines/wage/macwindow.cpp index a745755c07..99d0ad061c 100644 --- a/engines/wage/macwindow.cpp +++ b/engines/wage/macwindow.cpp @@ -49,7 +49,7 @@ namespace Wage { -MacWindow::MacWindow(WindowType type) : _type(type) { +MacWindow::MacWindow(bool scrollable, int id) : _scrollable(scrollable), _id(id) { _active = false; _borderIsDirty = true; } @@ -69,9 +69,16 @@ void MacWindow::resize(int w, int h) { _surface.free(); _surface.create(w, h, Graphics::PixelFormat::createFormatCLUT8()); + + _dims.setWidth(w); + _dims.setHeight(h); +} + +void MacWindow::move(int x, int y) { + _dims.moveTo(x, y); } -void MacWindow::draw(Graphics::Surface *g, int x, int y) { +void MacWindow::draw(Graphics::Surface *g) { if (_borderIsDirty) drawBorder(); } |