From 51657e10769faa2617d546a06c42e4c62a19bb50 Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 30 Jan 2022 17:41:24 +0100 Subject: Removed trailing whitespace all over the place --- Stars45/ComboList.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Stars45/ComboList.cpp') 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; -- cgit v1.1