summaryrefslogtreecommitdiff
path: root/Runtime/GUI/Font.h
diff options
context:
space:
mode:
Diffstat (limited to 'Runtime/GUI/Font.h')
-rw-r--r--Runtime/GUI/Font.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Runtime/GUI/Font.h b/Runtime/GUI/Font.h
index cd546af..565fafc 100644
--- a/Runtime/GUI/Font.h
+++ b/Runtime/GUI/Font.h
@@ -31,10 +31,13 @@ namespace character
union Hash {
unsigned int hashCode;
+#pragma pack(1)
struct {
Unicode codepoint;
unsigned short size;//×ÖÌå´óС
};
+#pragma pack()
+
bool operator==(const Hash &other) const
{
return codepoint == other.codepoint && size == other.size;