mirror of
https://github.com/aseprite/aseprite.git
synced 2024-10-04 05:50:15 +00:00
Fix Unicode characters encoding (we've to use utf-8) in Color::toHumanReadableString() and BrushAngleField()
This commit is contained in:
parent
ad0b28bd63
commit
033aad9d28
@ -227,7 +227,7 @@ std::string Color::toHumanReadableString(PixelFormat pixelFormat, HumanReadableS
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
result << "HSB "
|
result << "HSB "
|
||||||
<< m_value.hsv.h << "\xB0 "
|
<< m_value.hsv.h << "\xc2\xb0 "
|
||||||
<< m_value.hsv.s << " "
|
<< m_value.hsv.s << " "
|
||||||
<< m_value.hsv.v;
|
<< m_value.hsv.v;
|
||||||
|
|
||||||
@ -287,7 +287,7 @@ std::string Color::toHumanReadableString(PixelFormat pixelFormat, HumanReadableS
|
|||||||
result << "Gry-" << getGray();
|
result << "Gry-" << getGray();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
result << m_value.hsv.h << "\xB0"
|
result << m_value.hsv.h << "\xc2\xb0"
|
||||||
<< m_value.hsv.s << ","
|
<< m_value.hsv.s << ","
|
||||||
<< m_value.hsv.v;
|
<< m_value.hsv.v;
|
||||||
}
|
}
|
||||||
|
@ -214,7 +214,7 @@ public:
|
|||||||
BrushAngleField(BrushTypeField* brushType)
|
BrushAngleField(BrushTypeField* brushType)
|
||||||
: IntEntry(0, 180)
|
: IntEntry(0, 180)
|
||||||
, m_brushType(brushType) {
|
, m_brushType(brushType) {
|
||||||
setSuffix("\xB0");
|
setSuffix("\xc2\xb0");
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
Loading…
Reference in New Issue
Block a user