blob: 1f9f01bb6d19be4935bc6f343b5bb58b8f3b9049 [file] [log] [blame]
Hal Canary6c8422c2020-01-10 15:22:09 -05001// Copyright 2020 Google LLC.
2// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
3#include "tools/fiddle/examples.h"
4REG_FIDDLE(weird_RRect_bug, 256, 256, false, 0) {
5void draw(SkCanvas* canvas) {
6 canvas->clear(SK_ColorWHITE);
7 // canvas->scale(2, 2);
8
9 SkPaint p;
10 p.setAntiAlias(false);
11 p.setStrokeWidth(3);
12 p.setStyle(SkPaint::kStroke_Style);
13
14 SkRect r = SkRect::MakeXYWH(20, 20, 20, 20);
15
16 SkRRect rr = SkRRect::MakeRectXY(r, 5, 5);
17
18 canvas->drawRRect(rr, p);
19}
20} // END FIDDLE