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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user