summaryrefslogtreecommitdiff
path: root/hud
diff options
authorBrandon Schaefer <brandontschaefer@gmail.com>2014-01-15 15:00:32 -0800
committerBrandon Schaefer <brandontschaefer@gmail.com>2014-01-15 15:00:32 -0800
commit9051f39e39bfb3bf7dacc9a19ef209dafff8c655 (patch)
tree7ac47de4780349abf8752319f8b9389c9412a6b2 /hud
parented4414b2182c59c95e672dc5662b28d80a1f0a60 (diff)
* Move panel::Style::panel_height over to a function PanelHeight(int monitor)
(bzr r3625.1.1)
Diffstat (limited to 'hud')
-rw-r--r--hud/HudController.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/hud/HudController.cpp b/hud/HudController.cpp
index 6178bb618..d2ce1eb34 100644
--- a/hud/HudController.cpp
+++ b/hud/HudController.cpp
@@ -235,9 +235,9 @@ nux::Geometry Controller::GetIdealWindowGeometry()
// outside of our window
panel::Style &panel_style = panel::Style::Instance();
nux::Geometry geo(monitor_geo.x,
- monitor_geo.y + panel_style.panel_height,
+ monitor_geo.y + panel_style.PanelHeight(),
monitor_geo.width,
- monitor_geo.height - panel_style.panel_height);
+ monitor_geo.height - panel_style.PanelHeight());
if (IsLockedToLauncher(ideal_monitor))
{
@@ -261,7 +261,7 @@ void Controller::Relayout(bool check_monitor)
view_->QueueDraw();
window_->SetGeometry(geo);
panel::Style &panel_style = panel::Style::Instance();
- view_->SetMonitorOffset(launcher_width, panel_style.panel_height);
+ view_->SetMonitorOffset(launcher_width, panel_style.PanelHeight());
}
void Controller::OnMouseDownOutsideWindow(int x, int y,