summaryrefslogtreecommitdiff
path: root/hud
diff options
authorBrandon Schaefer <brandontschaefer@gmail.com>2012-06-25 09:32:30 -0700
committerBrandon Schaefer <brandontschaefer@gmail.com>2012-06-25 09:32:30 -0700
commit5514599819f5ed20b7235669c040f76cffda5fe8 (patch)
treea19fc00c6c5085da68e97c686ec88ca8101bff52 /hud
parent16e9bfcdcc0a6b99e6aaa468eecbdb505271fc2b (diff)
* Copy the entire content_geo now
* Fixed the ap test (bzr r2438.4.1)
Diffstat (limited to 'hud')
-rw-r--r--hud/HudView.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/hud/HudView.cpp b/hud/HudView.cpp
index 0a30442cc..b8dcbfc3d 100644
--- a/hud/HudView.cpp
+++ b/hud/HudView.cpp
@@ -417,7 +417,8 @@ void View::OnKeyDown (unsigned long event_type, unsigned long keysym,
void View::OnMouseButtonDown(int x, int y, unsigned long button, unsigned long key)
{
- nux::Geometry current_geo(0, 0, content_geo_.width, current_height_);
+ nux::Geometry current_geo(content_geo_);
+ current_geo.height = current_height_;
if (!current_geo.IsPointInside(x, y))
{
ubus.SendMessage(UBUS_HUD_CLOSE_REQUEST);