[haiku-commits] haiku: hrev44253 - src/apps/showimage

  • From: humdingerb@xxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 23 Jun 2012 20:54:47 +0200 (CEST)

hrev44253 adds 1 changeset to branch 'master'
old head: ccae01d421db5f197e39ab834adf8e5c141629f5
new head: 6f55e249dfd6e86460037055c524d65fd6e406bd

----------------------------------------------------------------------------

6f55e24: 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.

                                        [ Humdinger <humdingerb@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev44253
Commit:      6f55e249dfd6e86460037055c524d65fd6e406bd
URL:         http://cgit.haiku-os.org/haiku/commit/?id=6f55e24
Author:      Humdinger <humdingerb@xxxxxxxxx>
Date:        Sat Jun 23 18:53:42 2012 UTC

----------------------------------------------------------------------------

1 file changed, 1 insertion(+), 1 deletion(-)
src/apps/showimage/ShowImageWindow.cpp |    2 +-

----------------------------------------------------------------------------

diff --git a/src/apps/showimage/ShowImageWindow.cpp 
b/src/apps/showimage/ShowImageWindow.cpp
index ac52492..1fad14f 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
 


Other related posts: