[haiku-commits] haiku: hrev52837 - src/apps/processcontroller

  • From: waddlesplash <waddlesplash@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 3 Feb 2019 13:06:14 -0500 (EST)

hrev52837 adds 1 changeset to branch 'master'
old head: f465c7fa619a31eabf63b5e8d72edcdf78982c8e
new head: 13ce87c6f2cd1224058eca12003172ef6f53dd03
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=13ce87c6f2cd+%5Ef465c7fa619a

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

13ce87c6f2cd: apps/processcontroller Fix deskbar icon scaling issue Bug #14696
  
   * Clear entire width of interspace between CPU and Memory bars
  
     Fixes issue of artefacts appearing to the left of the memory
     bar when adjusting deskbar width, especially on multi-core
     systems at large font sizes.
  
     (original code appears to have assumed interspace would not
     exceed two pixels in width)
  
  Change-Id: I4183d0337e47573792f35280452455fda584ccaf
  Reviewed-on: https://review.haiku-os.org/c/1003
  Reviewed-by: Adrien Destugues <pulkomandy@xxxxxxxxx>

                                      [ Rob Gill <rrobgill@xxxxxxxxxxxxxx> ]

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

Revision:    hrev52837
Commit:      13ce87c6f2cd1224058eca12003172ef6f53dd03
URL:         https://git.haiku-os.org/haiku/commit/?id=13ce87c6f2cd
Author:      Rob Gill <rrobgill@xxxxxxxxxxxxxx>
Date:        Sun Feb  3 01:33:01 2019 UTC
Committer:   waddlesplash <waddlesplash@xxxxxxxxx>
Commit-Date: Sun Feb  3 18:06:11 2019 UTC

Ticket:      https://dev.haiku-os.org/ticket/14696

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

1 file changed, 3 insertions(+), 2 deletions(-)
src/apps/processcontroller/ProcessController.cpp | 5 +++--

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

diff --git a/src/apps/processcontroller/ProcessController.cpp 
b/src/apps/processcontroller/ProcessController.cpp
index 69b909862f..7ee38ba47a 100644
--- a/src/apps/processcontroller/ProcessController.cpp
+++ b/src/apps/processcontroller/ProcessController.cpp
@@ -622,10 +622,11 @@ ProcessController::DoDraw(bool force)
        }
        // interspace
        float right = left + gCPUcount * (barWidth + barGap) - barGap;
+       float leftMem = bounds.Width() - memWidth;
                // right of CPU frame...
        if (force && Parent()) {
                SetHighColor(Parent()->ViewColor());
-               FillRect(BRect(right + 1, top - 1, right + 2, bottom + 1));
+               FillRect(BRect(right + 1, top - 1, leftMem, bottom + 1));
        }
 
        if (force) {
@@ -637,7 +638,7 @@ ProcessController::DoDraw(bool force)
                                        BPoint(left + x * barWidth + x - 1, 
bottom));
                }
        }
-       float leftMem = bounds.Width() - memWidth;
+
        if (force)
                StrokeRect(BRect(leftMem - 1, top - 1, leftMem + memWidth, 
bottom + 1));
 


Other related posts:

  • » [haiku-commits] haiku: hrev52837 - src/apps/processcontroller - waddlesplash