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

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

hrev44252 adds 1 changeset to branch 'master'
old head: 55713eef96817a78bbfed8df3717bcd779e268f2
new head: ccae01d421db5f197e39ab834adf8e5c141629f5

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

ccae01d: Fixed issue when auto-showing toolbar in fullscreen mode.
  
  If you've zoomed in fullscreen mode and moved the mouse to the top of the
  screen, the toolbar didn't appear. You had to scroll up to the top of zoomed
  image first. Using the screen coords instead of the view coords fixes this.

                                        [ Humdinger <humdingerb@xxxxxxxxx> ]

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

Revision:    hrev44252
Commit:      ccae01d421db5f197e39ab834adf8e5c141629f5
URL:         http://cgit.haiku-os.org/haiku/commit/?id=ccae01d
Author:      Humdinger <humdingerb@xxxxxxxxx>
Date:        Sat Jun 23 18:16:58 2012 UTC

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

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

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

diff --git a/src/apps/showimage/ShowImageView.cpp 
b/src/apps/showimage/ShowImageView.cpp
index 4551cf1..22e14a4 100644
--- a/src/apps/showimage/ShowImageView.cpp
+++ b/src/apps/showimage/ShowImageView.cpp
@@ -1172,7 +1172,7 @@ ShowImageView::MouseMoved(BPoint point, uint32 state, 
const BMessage* message)
        fHideCursorCountDown = HIDE_CURSOR_DELAY_TIME;
        if (fHideCursor) {
                // Show toolbar when mouse hits top 15 pixels, hide otherwise
-               _ShowToolBarIfEnabled(point.y <= 15);
+               _ShowToolBarIfEnabled(ConvertToScreen(point).y <= 15);
        }
        if (fCreatingSelection)
                _UpdateSelectionRect(point, false);


Other related posts:

  • » [haiku-commits] haiku: hrev44252 - src/apps/showimage - humdingerb