From 44856d86d4efb12e08c8ef7560f39233107dfa8a Mon Sep 17 00:00:00 2001 From: François Revel Date: Wed, 13 Aug 2008 19:35:41 +0000 Subject: Fix the BeOS build: - hack to work around stdbool.h issue with R5 devkit - fix prototypes - fix bitmap code - fix copy-paste on forward button - remove unused gif throbber loading code - R5 rgb_color doesn't have != operator, use memcmp() - switch back to file based [beos]default.css for the time being - realpath() hack for R5 Regressions: - asserts on haiku-os.org - no libns* yet, so less image support - text field input doesn't work anymore. svn path=/trunk/netsurf/; revision=5109 --- beos/beos_font.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'beos/beos_font.cpp') 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 #include #include @@ -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(); -- cgit v1.2.3