From 025e63b08a1e5b0ef224307aca3ee29748bd6121 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Wed, 14 Dec 2005 08:01:49 +0000 Subject: [PATCH] added functions to quickly tell if the pattern is the solid high or low pattern git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15533 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/servers/app/PatternHandler.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/headers/private/servers/app/PatternHandler.h b/headers/private/servers/app/PatternHandler.h index 63456f43c5..3167d78668 100644 --- a/headers/private/servers/app/PatternHandler.h +++ b/headers/private/servers/app/PatternHandler.h @@ -135,8 +135,12 @@ class PatternHandler { bool IsHighColor(const BPoint& pt) const; inline bool IsHighColor(int x, int y) const; + inline bool IsSolidHigh() const + { return fPattern == B_SOLID_HIGH; } + inline bool IsSolidLow() const + { return fPattern == B_SOLID_LOW; } inline bool IsSolid() const - { return fPattern == B_SOLID_HIGH || fPattern == B_SOLID_LOW; } + { return IsSolidHigh() || IsSolidLow(); } const pattern* GetR5Pattern(void) const { return (const pattern*)fPattern.GetInt8(); }