summaryrefslogtreecommitdiffhomepage
path: root/Stars45/ComboList.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/ComboList.cpp')
-rw-r--r--Stars45/ComboList.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Stars45/ComboList.cpp b/Stars45/ComboList.cpp
index d070b9f..982f2b9 100644
--- a/Stars45/ComboList.cpp
+++ b/Stars45/ComboList.cpp
@@ -173,7 +173,7 @@ ComboList::Draw()
// opening:
if (scrolling > 0) {
int limit = std::min(items.size(), max_entries);
-
+
if (scroll < limit) {
if (limit > 6)
scroll += 4;
@@ -254,7 +254,7 @@ ComboList::DrawItem(Text label, Rect& btn_rect, int state)
DrawText(label.data(), 0, label_rect, DT_CALCRECT | DT_WORDBREAK | text_align);
vert_space = (vert_space - label_rect.h)/2;
-
+
label_rect.w = horz_space;
if (vert_space > 0)
@@ -307,7 +307,7 @@ int ComboList::OnMouseMove(int x, int y)
int new_seln = CalcSeln(x,y);
if (new_seln != seln) {
- seln = new_seln;
+ seln = new_seln;
Button::PlaySound(Button::SND_COMBO_HILITE);
}
@@ -343,7 +343,7 @@ int ComboList::OnClick()
}
int ComboList::OnMouseEnter(int mx, int my)
-{
+{
if (button_state == 0)
button_state = -1;
@@ -351,7 +351,7 @@ int ComboList::OnMouseEnter(int mx, int my)
}
int ComboList::OnMouseExit(int mx, int my)
-{
+{
if (button_state == -1)
button_state = 0;