Skip to content

Commit a20ec8a

Browse files
committed
Remove stroke width limit from nanovg
1 parent 47e7aad commit a20ec8a

File tree

4 files changed

+2
-2
lines changed

4 files changed

+2
-2
lines changed

test/lines.png

575 Bytes
Loading

test/lines_hq.png

1.16 KB
Loading

test/penlayer/penlayer_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ TEST_F(PenLayerTest, DrawLine)
315315
penLayer.drawLine(attr, 130, 77, 125, -22);
316316

317317
attr.color = QNanoColor(0, 128, 0, 128);
318-
attr.diameter = 10;
318+
attr.diameter = 250;
319319

320320
penLayer.drawLine(attr, 152, -158, -228, 145);
321321
penLayer.drawLine(attr, -100, 139, 20, 72);

thirdparty/libqnanopainter/nanovg/nanovg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2345,7 +2345,7 @@ void nvgStroke(NVGcontext* ctx)
23452345
{
23462346
NVGstate* state = nvg__getState(ctx);
23472347
float scale = nvg__getAverageScale(state->xform);
2348-
float strokeWidth = nvg__clampf(state->strokeWidth * scale, 0.0f, 200.0f);
2348+
float strokeWidth = state->strokeWidth * scale;
23492349
NVGpaint strokePaint = state->stroke;
23502350
const NVGpath* path;
23512351
int i;

0 commit comments

Comments
 (0)