From 716864ba271ca0812d664872d4cb92e8be087c89 Mon Sep 17 00:00:00 2001 From: Julian Uy Date: Wed, 16 Apr 2025 08:52:44 -0500 Subject: [PATCH 1/2] portability: correct case include path This is required on case-sensitive filesystems --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index b9073ee..5379c21 100644 --- a/main.cpp +++ b/main.cpp @@ -1,5 +1,5 @@ #include "ncbind.hpp" -#include "layerExDraw.hpp" +#include "LayerExDraw.hpp" /** * ログ出力用 From 2c1171c90bc5aa9f2fe8425ea5c550e818a747ee Mon Sep 17 00:00:00 2001 From: Julian Uy Date: Wed, 16 Apr 2025 08:54:29 -0500 Subject: [PATCH 2/2] portability: use the argument constructor Clang selects a private constructor when using the assignment constructor, which errors --- LayerExDraw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LayerExDraw.cpp b/LayerExDraw.cpp index 8b89920..6784304 100644 --- a/LayerExDraw.cpp +++ b/LayerExDraw.cpp @@ -1672,7 +1672,7 @@ LayerExDraw::measureStringInternal(const FontInfo *font, const tjs_char *text) Font f(font->fontFamily, font->emSize, font->style, UnitPixel); graphics->MeasureString(text, -1, &f, PointF(0,0), StringFormat::GenericDefault(), &rect); CharacterRange charRange(0, INT(wcslen(text))); - StringFormat stringFormat = StringFormat::GenericDefault(); + StringFormat stringFormat(StringFormat::GenericDefault()); stringFormat.SetMeasurableCharacterRanges(1, &charRange); Region region; graphics->MeasureCharacterRanges(text, -1, &f, rect, &stringFormat, 1, ®ion);