diff options
author | Nicolas Bacca | 2004-01-28 01:09:08 +0000 |
---|---|---|
committer | Nicolas Bacca | 2004-01-28 01:09:08 +0000 |
commit | 2ff396d7e8682ae5b06c54a57f3ceefed01e20e3 (patch) | |
tree | 20ce2113539518734a0db8d4054309adb4b6e671 /backends/wince/CEgui/ToolbarHandler.cpp | |
parent | 4793b48326a111e05deb76d61b5bbbcc965d861d (diff) | |
download | scummvm-rg350-2ff396d7e8682ae5b06c54a57f3ceefed01e20e3.tar.gz scummvm-rg350-2ff396d7e8682ae5b06c54a57f3ceefed01e20e3.tar.bz2 scummvm-rg350-2ff396d7e8682ae5b06c54a57f3ceefed01e20e3.zip |
640x480 toolbar fixes, don't draw an invisible toolbar
svn-id: r12644
Diffstat (limited to 'backends/wince/CEgui/ToolbarHandler.cpp')
-rw-r--r-- | backends/wince/CEgui/ToolbarHandler.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/backends/wince/CEgui/ToolbarHandler.cpp b/backends/wince/CEgui/ToolbarHandler.cpp index 6703dde34a..430f2da105 100644 --- a/backends/wince/CEgui/ToolbarHandler.cpp +++ b/backends/wince/CEgui/ToolbarHandler.cpp @@ -58,8 +58,13 @@ namespace CEGUI { } bool ToolbarHandler::action(int x, int y, bool pushed) { - if (_active) - return _active->action(x, y, pushed); + if (_active) { + // FIXME ! + if (_offset > 240) + return _active->action(x / 2, (y - _offset) / 2, pushed); + else + return _active->action(x, y - _offset, pushed); + } else return false; } @@ -103,6 +108,14 @@ namespace CEGUI { return false; } + void ToolbarHandler::setOffset(int offset) { + _offset = offset; + } + + int ToolbarHandler::getOffset() { + return _offset; + } + Toolbar* ToolbarHandler::active() { return _active; } |