summaryrefslogtreecommitdiffhomepage
path: root/Stars45/ImageBox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/ImageBox.cpp')
-rw-r--r--Stars45/ImageBox.cpp14
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);
}