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/ImageBox.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'Stars45/ImageBox.cpp') diff --git a/Stars45/ImageBox.cpp b/Stars45/ImageBox.cpp index bdec199..242ad74 100644 --- a/Stars45/ImageBox.cpp +++ b/Stars45/ImageBox.cpp @@ -116,7 +116,7 @@ ImageBox::Draw() DrawText(text.data(), 0, label_rect, DT_CALCRECT | DT_WORDBREAK | DT_CENTER); vert_space = (vert_space - label_rect.h)/2; - + label_rect.w = horz_space; if (vert_space > 0) @@ -214,13 +214,13 @@ ImageBox::CalcPictureRect() int h = rect.h; int img_w = picture.Width(); int img_h = picture.Height(); - + if (img_h > h) img_h = h-2; if (img_w > w) img_w = w-2; - + int img_x_offset = 0; int img_y_offset = 0; - + switch (picture_loc) { default: // TOP ROW: @@ -253,7 +253,7 @@ ImageBox::CalcPictureRect() img_y_offset = h - img_h; break; } - + Rect img_rect; img_rect.x = img_x_offset; img_rect.y = img_y_offset; @@ -286,12 +286,12 @@ int ImageBox::OnClick() } int ImageBox::OnMouseEnter(int mx, int my) -{ +{ return ActiveWindow::OnMouseEnter(mx, my); } int ImageBox::OnMouseExit(int mx, int my) -{ +{ return ActiveWindow::OnMouseExit(mx, my); } -- cgit v1.1