Skip to content

Commit 919c19e

Browse files
committed
stroke issue
1 parent 1fd50b5 commit 919c19e

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

examples/demo/screenshot.png

281 Bytes
Loading

src/fidget/opengl/context.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ proc strokeRoundedRect*(
567567
if hash notin ctx.entries:
568568
var image = newImage(w, h)
569569
image.strokeRoundedRect(
570-
rect(0, 0, rect.w, rect.h),
570+
rect(weight / 2, weight / 2, rect.w - weight, rect.h - weight),
571571
radius,
572572
rgba(255, 255, 255, 255),
573573
weight
@@ -601,7 +601,7 @@ proc line*(
601601
if hash notin ctx.entries:
602602
var image = newImage(w, h)
603603
image.strokeSegment(
604-
segment(a-pos, b-pos),
604+
segment(a - pos, b - pos),
605605
rgba(255, 255, 255, 255)
606606
)
607607
ctx.putImage(hash, image)

tests/fontmetrics/screenshot.png

-284 Bytes
Loading

0 commit comments

Comments
 (0)