diff options
Diffstat (limited to 'engines/gargoyle/windows.h')
-rw-r--r-- | engines/gargoyle/windows.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/engines/gargoyle/windows.h b/engines/gargoyle/windows.h index 93d7ac24f6..d753d5311e 100644 --- a/engines/gargoyle/windows.h +++ b/engines/gargoyle/windows.h @@ -261,12 +261,27 @@ struct Attributes { && style == src.style && fgcolor == src.fgcolor && bgcolor == src.bgcolor && hyper == src.hyper; } + /** + * Inequality comparison + */ + bool operator!=(const Attributes &src) { + return fgset != src.fgset || bgset != src.bgset || reverse != src.reverse + || style != src.style || fgcolor != src.fgcolor || bgcolor != src.bgcolor + || hyper != src.hyper; + } + /** + * Return the background color for the current font style + */ byte *attrBg(WindowStyle *styles); + + /** + * Return the foreground color for the current font style + */ byte *attrFg(WindowStyle *styles); /** - * Get the font from the attribute's style + * Get the font for the current font style */ FACES attrFont(WindowStyle *styles) const { return styles[style].font; } }; |