diff options
author | Eugene Sandulenko | 2020-01-03 00:49:48 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2020-01-03 00:50:24 +0100 |
commit | d9f6a0cf4d6a5765b73814738ca7662e1adea2cd (patch) | |
tree | 7af73bb8938e378bfa211fcd56b0a90ae39e23e8 /graphics/macgui/macwidget.cpp | |
parent | c3c23c28a194ac5e3a2b74d42530d8b05824b091 (diff) | |
download | scummvm-rg350-d9f6a0cf4d6a5765b73814738ca7662e1adea2cd.tar.gz scummvm-rg350-d9f6a0cf4d6a5765b73814738ca7662e1adea2cd.tar.bz2 scummvm-rg350-d9f6a0cf4d6a5765b73814738ca7662e1adea2cd.zip |
GRAPHICS: MACGUI: Further work on MacEditableText
Diffstat (limited to 'graphics/macgui/macwidget.cpp')
-rw-r--r-- | graphics/macgui/macwidget.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/graphics/macgui/macwidget.cpp b/graphics/macgui/macwidget.cpp index 2ff7720019..56fa13c5fc 100644 --- a/graphics/macgui/macwidget.cpp +++ b/graphics/macgui/macwidget.cpp @@ -24,9 +24,14 @@ namespace Graphics { -MacWidget::MacWidget(int id, bool focusable, MacWindow *parent) : - _id(id), _focusable(focusable), _parent(parent) { +MacWidget::MacWidget(MacWindow *parent, int x, int y, int w, int h, bool focusable) : + _focusable(focusable), _parent(parent) { _contentIsDirty = true; + + _dims.left = x; + _dims.right = x + w; + _dims.top = y; + _dims.bottom = y + h; } } // End of namespace Graphics |