diff options
author | Aki <please@ignore.pl> | 2022-01-30 17:41:24 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-01-30 17:41:24 +0100 |
commit | 51657e10769faa2617d546a06c42e4c62a19bb50 (patch) | |
tree | 688ad8b61ac02e50974684b9b7d3f886fb469e5f /Stars45/ImageBox.cpp | |
parent | db987e23d5dd33a5db8764743facbb906ac22b0f (diff) | |
download | starshatter-51657e10769faa2617d546a06c42e4c62a19bb50.zip starshatter-51657e10769faa2617d546a06c42e4c62a19bb50.tar.gz starshatter-51657e10769faa2617d546a06c42e4c62a19bb50.tar.bz2 |
Removed trailing whitespace all over the place
Diffstat (limited to 'Stars45/ImageBox.cpp')
-rw-r--r-- | Stars45/ImageBox.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
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); } |