GRAPHICS: MACGUI: Add equality test for MacFontRun

This commit is contained in:
Eugene Sandulenko committed 2023-10-24 02:38:14 +02:00
1 parent e501076c61
commit 4e614216b2
1 file changed
+11
+11
View File
@@ -115,6 +115,17 @@ struct MacFontRun {
Common::CodePage getEncoding();
bool plainByteMode();
Common::String getEncodedText();
bool equals(const MacFontRun *x, const MacFontRun *y) {
return (x->fontId == y->fontId &&
x->textSlant == y->textSlant &&
x->fontSize == y->fontSize &&
x->palinfo1 == y->palinfo1 &&
x->palinfo2 == y->palinfo2 &&
x->palinfo3 == y->palinfo3 &&
x->fgcolor == y->fgcolor);
}
};
struct MacTextLine;