From 99383764f6a9866f7931a6b87ae01a6fb89c5301 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 28 Dec 2005 23:27:32 +0000 Subject: [PATCH] Enabled building under BeOS, and fixed the build under R5. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15702 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/preferences/screen/Jamfile | 1 + src/preferences/screen/MonitorView.cpp | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/src/preferences/screen/Jamfile b/src/preferences/screen/Jamfile index 9245c018f5..3a4fcf5947 100644 --- a/src/preferences/screen/Jamfile +++ b/src/preferences/screen/Jamfile @@ -1,5 +1,6 @@ SubDir HAIKU_TOP src preferences screen ; +SetSubDirSupportedPlatformsBeOSCompatible ; AddSubDirSupportedPlatforms libbe_test ; UsePrivateHeaders [ FDirName graphics radeon ] ; diff --git a/src/preferences/screen/MonitorView.cpp b/src/preferences/screen/MonitorView.cpp index 8007b56dae..a4b4f6a3b4 100644 --- a/src/preferences/screen/MonitorView.cpp +++ b/src/preferences/screen/MonitorView.cpp @@ -125,6 +125,16 @@ MonitorView::SetResolution(int32 width, int32 height) } +#ifdef HAIKU_TARGET_PLATFORM_BEOS +// r5 doesn't have this one +bool +operator!=(const rgb_color &a, const rgb_color &b) +{ + return a.red != b.red || a.green != b.green || a.blue != b.blue; +} +#endif + + void MonitorView::MessageReceived(BMessage* message) {