aboutsummaryrefslogtreecommitdiff
path: root/backends/wince
diff options
context:
space:
mode:
authorNicolas Bacca2005-10-16 22:53:56 +0000
committerNicolas Bacca2005-10-16 22:53:56 +0000
commit9bd5866df24fc1acf91a58173ce24d001442108d (patch)
treeef53ed4e19b22cdea7363d907e285b070289d586 /backends/wince
parentce1a66a3328b658f927a0271122d3fb9234a9658 (diff)
downloadscummvm-rg350-9bd5866df24fc1acf91a58173ce24d001442108d.tar.gz
scummvm-rg350-9bd5866df24fc1acf91a58173ce24d001442108d.tar.bz2
scummvm-rg350-9bd5866df24fc1acf91a58173ce24d001442108d.zip
Toolbar must be visible to process an action.
svn-id: r19122
Diffstat (limited to 'backends/wince')
-rw-r--r--backends/wince/CEgui/ToolbarHandler.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/backends/wince/CEgui/ToolbarHandler.cpp b/backends/wince/CEgui/ToolbarHandler.cpp
index 4a3622260e..3678a3b014 100644
--- a/backends/wince/CEgui/ToolbarHandler.cpp
+++ b/backends/wince/CEgui/ToolbarHandler.cpp
@@ -33,7 +33,6 @@ namespace CEGUI {
_toolbarMap.addKey(name);
_toolbarMap[name] = (Toolbar*)&toolbar;
-
if (!_active) {
_active = &((Toolbar&)toolbar);
_current = name;
@@ -58,7 +57,7 @@ namespace CEGUI {
}
bool ToolbarHandler::action(int x, int y, bool pushed) {
- if (_active) {
+ if (_active && _active->visible()) {
// FIXME !
if (_offset > 240)
return _active->action(x / 2, (y - _offset) / 2, pushed);