Skip to content

Commit

Permalink
リファクタリング
Browse files Browse the repository at this point in the history
  • Loading branch information
ebifrier committed Apr 14, 2024
1 parent 3af617c commit 6ac9c17
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Ragnarok.OpenGL/TextTexture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -318,18 +318,18 @@ private Bitmap CreateTextBitmap(Rectangle bounds)

if (EdgeLength > 0.0)
{
using (var pen = new Pen(EdgeColor, (float)EdgeLength))
using (var path2 = (GraphicsPath)path.Clone())
using (var edgePen = new Pen(EdgeColor, (float)EdgeLength))
using (var edgePath = (GraphicsPath)path.Clone())
{
// GraphicsPath.GetBoundsではPen.MiterLimitの値が考慮され
// デフォルト値=10のままだと、GetBoundsの返り値が
// 異様に大きな矩形になってしまいます。
pen.MiterLimit = 1;
edgePen.MiterLimit = 1;

// MONOで使えないため使わないようにする。
//path2.Widen(pen, new Matrix());
//edgePath.Widen(pen, new Matrix());

g.DrawPath(pen, path2);
g.DrawPath(edgePen, edgePath);
}
}

Expand Down

0 comments on commit 6ac9c17

Please sign in to comment.