Skip to content

Commit 72a23e1

Browse files
committed
remove extra arg
1 parent 96d5310 commit 72a23e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/CanvasRenderingContext2d.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2416,13 +2416,13 @@ inline double getBaselineAdjustment(PangoLayout* layout, short baseline) {
24162416

24172417
switch (baseline) {
24182418
case TEXT_BASELINE_ALPHABETIC:
2419-
return ascent; // / current_scale_y;
2419+
return ascent;
24202420
case TEXT_BASELINE_IDEOGRAPHIC:
24212421
return ascent + correction_factor;
24222422
case TEXT_BASELINE_MIDDLE:
2423-
return (ascent + descent) / 2.0; // / current_scale_y;
2423+
return (ascent + descent) / 2.0;
24242424
case TEXT_BASELINE_BOTTOM:
2425-
return (ascent + descent) - correction_factor; // / current_scale_y;
2425+
return (ascent + descent) - correction_factor;
24262426
case TEXT_BASELINE_HANGING:
24272427
return correction_factor * 3.0;
24282428
case TEXT_BASELINE_TOP:

0 commit comments

Comments
 (0)