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.
This commit is contained in:
Humdinger
2012-06-23 20:53:42 +02:00
parent ccae01d421
commit 6f55e249df
+1 -1
View File
@@ -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