[haiku-commits] haiku: hrev46014 - src/preferences/screensaver

  • From: jscipione@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 3 Sep 2013 04:02:22 +0200 (CEST)

hrev46014 adds 1 changeset to branch 'master'
old head: b75fe9ba8eec41b59bf29e0f272e0d6f4257356b
new head: 2019bf1e17bd833bb884552e61949a2e6feced37
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=2019bf1+%5Eb75fe9b

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

2019bf1: ScreenSaver: Tweak the text height...
  
  because the bottom of decenders was getting cut off in some locales
  on the 3rd line of text.

                                     [ John Scipione <jscipione@xxxxxxxxx> ]

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

Revision:    hrev46014
Commit:      2019bf1e17bd833bb884552e61949a2e6feced37
URL:         http://cgit.haiku-os.org/haiku/commit/?id=2019bf1
Author:      John Scipione <jscipione@xxxxxxxxx>
Date:        Tue Sep  3 01:48:49 2013 UTC

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

1 file changed, 5 insertions(+), 3 deletions(-)
src/preferences/screensaver/ScreenSaverWindow.cpp | 8 +++++---

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

diff --git a/src/preferences/screensaver/ScreenSaverWindow.cpp 
b/src/preferences/screensaver/ScreenSaverWindow.cpp
index a3a100d..124f9b4 100644
--- a/src/preferences/screensaver/ScreenSaverWindow.cpp
+++ b/src/preferences/screensaver/ScreenSaverWindow.cpp
@@ -279,7 +279,7 @@ FadeView::FadeView(const char* name, ScreenSaverSettings& 
settings)
        fTurnOffNotSupported = new BTextView("not_supported", be_plain_font,
                &textColor, B_WILL_DRAW);
        fTurnOffNotSupported->SetExplicitMinSize(BSize(B_SIZE_UNSET,
-               textHeight * 3));
+               3 + textHeight * 3));
        fTurnOffNotSupported->SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
        fTurnOffNotSupported->MakeEditable(false);
        fTurnOffNotSupported->MakeSelectable(false);
@@ -316,7 +316,8 @@ FadeView::FadeView(const char* name, ScreenSaverSettings& 
settings)
        fFadeNow = new ScreenCornerSelector(monitorRect, "FadeNow",
                new BMessage(kMsgFadeCornerChanged), B_FOLLOW_NONE);
        BTextView* fadeNowText = new BTextView("FadeNowText", B_WILL_DRAW);
-       fadeNowText->SetExplicitMinSize(BSize(B_SIZE_UNSET, textHeight * 3));
+       fadeNowText->SetExplicitMinSize(BSize(B_SIZE_UNSET,
+               3 + textHeight * 3));
        fadeNowText->SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
        fadeNowText->MakeEditable(false);
        fadeNowText->MakeSelectable(false);
@@ -325,7 +326,8 @@ FadeView::FadeView(const char* name, ScreenSaverSettings& 
settings)
        fFadeNever = new ScreenCornerSelector(monitorRect, "FadeNever",
                new BMessage(kMsgNeverFadeCornerChanged), B_FOLLOW_NONE);
        BTextView* fadeNeverText = new BTextView("FadeNeverText", B_WILL_DRAW);
-       fadeNeverText->SetExplicitMinSize(BSize(B_SIZE_UNSET, textHeight * 3));
+       fadeNeverText->SetExplicitMinSize(BSize(B_SIZE_UNSET,
+               3 + textHeight * 3));
        fadeNeverText->SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
        fadeNeverText->MakeEditable(false);
        fadeNeverText->MakeSelectable(false);


Other related posts:

  • » [haiku-commits] haiku: hrev46014 - src/preferences/screensaver - jscipione