From 1967709a04d77e785edfaa939363a4d48c3a53b0 Mon Sep 17 00:00:00 2001 From: Philippe Houdoin Date: Thu, 20 Nov 2003 02:21:46 +0000 Subject: [PATCH] Ooops, forget to match caption rect size and position there too... git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5420 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/showimage/ShowImageView.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/apps/showimage/ShowImageView.cpp b/src/apps/showimage/ShowImageView.cpp index 5791d2d2f6..3b16bb56b7 100644 --- a/src/apps/showimage/ShowImageView.cpp +++ b/src/apps/showimage/ShowImageView.cpp @@ -558,7 +558,7 @@ ShowImageView::DrawCaption() pos.y = bounds.bottom - fontHeight.descent - 5; // background rectangle - rect.Set(0, 0, (width-1)+4, (height-1)+4+1); // 2 for border and 1 for text shadow + rect.Set(0, 0, (width-1)+4, (height-1)+4+1); // 4 for border and 1 for text shadow rect.OffsetTo(pos); rect.OffsetBy(-3, -2-fontHeight.ascent); // -2 for border @@ -601,9 +601,9 @@ ShowImageView::EraseCaption() pos.y = bounds.bottom - fontHeight.descent - 5; // background rectangle - rect.Set(0, 0, (width-1)+2, (height-1)+2+1); // 2 for border and 1 for text shadow + rect.Set(0, 0, (width-1)+4, (height-1)+4+1); // 4 for border and 1 for text shadow rect.OffsetTo(pos); - rect.OffsetBy(-1, -1-fontHeight.ascent); // -1 for border + rect.OffsetBy(-3, -2-fontHeight.ascent); // -2 for border // draw over portion of image where caption is located Draw(rect);