aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/windows.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/glk/windows.h')
-rw-r--r--engines/glk/windows.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/glk/windows.h b/engines/glk/windows.h
index c905556f9e..c917d2f04b 100644
--- a/engines/glk/windows.h
+++ b/engines/glk/windows.h
@@ -328,7 +328,7 @@ struct Attributes {
/**
* Equality comparison
*/
- bool operator==(const Attributes &src) {
+ bool operator==(const Attributes &src) const {
return fgset == src.fgset && bgset == src.bgset && reverse == src.reverse
&& style == src.style && fgcolor == src.fgcolor && bgcolor == src.bgcolor
&& hyper == src.hyper;
@@ -336,7 +336,7 @@ struct Attributes {
/**
* Inequality comparison
*/
- bool operator!=(const Attributes &src) {
+ bool operator!=(const Attributes &src) const {
return fgset != src.fgset || bgset != src.bgset || reverse != src.reverse
|| style != src.style || fgcolor != src.fgcolor || bgcolor != src.bgcolor
|| hyper != src.hyper;
@@ -345,17 +345,17 @@ struct Attributes {
/**
* Return the background color for the current font style
*/
- byte *attrBg(WindowStyle *styles);
+ const byte *attrBg(const WindowStyle *styles);
/**
* Return the foreground color for the current font style
*/
- byte *attrFg(WindowStyle *styles);
+ const byte *attrFg(const WindowStyle *styles);
/**
* Get the font for the current font style
*/
- FACES attrFont(WindowStyle *styles) const {
+ FACES attrFont(const WindowStyle *styles) const {
return styles[style].font;
}
};