diff options
Diffstat (limited to 'beos/beos_font.cpp')
-rw-r--r-- | beos/beos_font.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/beos/beos_font.cpp b/beos/beos_font.cpp index 81c66b4bb..70c5be84f 100644 --- a/beos/beos_font.cpp +++ b/beos/beos_font.cpp @@ -24,6 +24,7 @@ */ +#define __STDBOOL_H__ 1 #include <stdbool.h> #include <assert.h> #include <stdio.h> @@ -353,7 +354,7 @@ bool nsfont_paint(const struct css_style *style, view->DrawString(line.String(), where); view->SetDrawingMode(oldmode); - if (oldbg != background) + if (memcmp(&oldbg, &background, sizeof(rgb_color))) view->SetLowColor(oldbg); //nsbeos_current_gc_unlock(); |