From 3ecf187e2a139ce92df3a1664afa3d3cf1f614ef Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Fri, 4 Sep 2009 18:16:59 +0000 Subject: [PATCH] Made MenuWindow::GetSteps() const. Increased the scrollers size from 10 to 12, since at high resolutions, they're really too small. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32932 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/interface/MenuWindow.h | 2 +- src/kits/interface/MenuWindow.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/headers/private/interface/MenuWindow.h b/headers/private/interface/MenuWindow.h index e4f32ee7ab..80c03716d7 100644 --- a/headers/private/interface/MenuWindow.h +++ b/headers/private/interface/MenuWindow.h @@ -36,7 +36,7 @@ public: void DetachScrollers(); void SetSmallStep(float step); - void GetSteps(float* _smallStep, float* _largeStep); + void GetSteps(float* _smallStep, float* _largeStep) const; bool HasScrollers() const; bool CheckForScrolling(const BPoint& cursor); bool TryScrollBy(const float& step); diff --git a/src/kits/interface/MenuWindow.cpp b/src/kits/interface/MenuWindow.cpp index a3900699b0..51980e4d5b 100644 --- a/src/kits/interface/MenuWindow.cpp +++ b/src/kits/interface/MenuWindow.cpp @@ -71,7 +71,7 @@ public: using namespace BPrivate; -const int kScrollerHeight = 10; +const int kScrollerHeight = 12; BMenuScroller::BMenuScroller(BRect frame) @@ -367,7 +367,7 @@ BMenuWindow::SetSmallStep(float step) void -BMenuWindow::GetSteps(float* _smallStep, float* _largeStep) +BMenuWindow::GetSteps(float* _smallStep, float* _largeStep) const { if (_smallStep != NULL) *_smallStep = fScrollStep;