Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ddcc5bca authored by Xavier Ducrohet's avatar Xavier Ducrohet Committed by The Android Open Source Project
Browse files

AI 146586: am: CL 146485 am: CL 146411 Fix BridgeCanvas#drawRoundRect

  Original author: xav
  Merged from: //branches/cupcake/...
  Original author: android-build

Automated import of CL 146586
parent d6f5a3ad
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -650,12 +650,12 @@ public class BridgeCanvas extends Canvas {
        int arcHeight = (int)(ry * 2);
        
        if (style == Style.FILL || style == Style.FILL_AND_STROKE) {
            g.fillRoundRect((int)rect.left, (int)rect.right, (int)rect.width(), (int)rect.height(),
            g.fillRoundRect((int)rect.left, (int)rect.top, (int)rect.width(), (int)rect.height(),
                    arcWidth, arcHeight);
        }

        if (style == Style.STROKE || style == Style.FILL_AND_STROKE) {
            g.drawRoundRect((int)rect.left, (int)rect.right, (int)rect.width(), (int)rect.height(),
            g.drawRoundRect((int)rect.left, (int)rect.top, (int)rect.width(), (int)rect.height(),
                    arcWidth, arcHeight);
        }