From 6f55e249dfd6e86460037055c524d65fd6e406bd Mon Sep 17 00:00:00 2001 From: Humdinger Date: Sat, 23 Jun 2012 20:53:42 +0200 Subject: [PATCH] Fixed redrawing bug when coming out of fullscreen mode. After coming back from fullscreen mode, horizontally scrolling a zoomed image would draw vertical lines from the right border. Seems like an off-by-one issue. This fixes it in my tests... hope it's properly done. --- src/apps/showimage/ShowImageWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/showimage/ShowImageWindow.cpp b/src/apps/showimage/ShowImageWindow.cpp index ac52492589..1fad14f560 100644 --- a/src/apps/showimage/ShowImageWindow.cpp +++ b/src/apps/showimage/ShowImageWindow.cpp @@ -1272,7 +1272,7 @@ ShowImageWindow::_ToggleFullScreen() fWindowFrame = Frame(); frame = screen.Frame(); frame.top -= fBar->Bounds().Height()+1; - frame.right += B_V_SCROLL_BAR_WIDTH; + frame.right += B_V_SCROLL_BAR_WIDTH-1; frame.bottom += B_H_SCROLL_BAR_HEIGHT; frame.InsetBy(-1, -1); // PEN_SIZE in ShowImageView