Ticket #7330: 0001-ControlLook-Fix-drawing-of-right-bottom-tab-corner.patch

File 0001-ControlLook-Fix-drawing-of-right-bottom-tab-corner.patch, 912 bytes (added by KapiX, 3 years ago)
  • src/kits/interface/ControlLook.cpp

    From 05a194590b1d078a7e8f94d03fe392ac9d7ea3e7 Mon Sep 17 00:00:00 2001
    From: Kacper Kasper <kacperkasper@gmail.com>
    Date: Sat, 21 Jan 2017 16:46:26 +0100
    Subject: [PATCH 1/2] ControlLook: Fix drawing of right bottom tab corner.`
    
    ---
     src/kits/interface/ControlLook.cpp | 4 ++--
     1 file changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/src/kits/interface/ControlLook.cpp b/src/kits/interface/ControlLook.cpp
    index bc6f798..8e38fbb 100644
    a b BControlLook::_DrawRoundCornerFrameRightBottom(BView* view, BRect& cornerRect,  
    31643164    // frame
    31653165    ellipseRect.InsetBy(1, 1);
    31663166    cornerRect.right--;
    3167     cornerRect.bottom++;
     3167    cornerRect.bottom--;
    31683168    view->SetHighColor(frameColor);
    31693169    view->FillEllipse(ellipseRect);
    31703170
    31713171    // prepare for bevel
    3172     cornerRect.left++;
     3172    cornerRect.right--;
    31733173    cornerRect.bottom--;
    31743174}
    31753175