X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7742598f08a0ff574c12294b426ea27bd7ccbdb0..0b8558681e8c69b749f64b891111f5ea72c04550:/src/common/gdicmn.cpp diff --git a/src/common/gdicmn.cpp b/src/common/gdicmn.cpp index e658746045..7755f181e1 100644 --- a/src/common/gdicmn.cpp +++ b/src/common/gdicmn.cpp @@ -89,16 +89,14 @@ bool wxRect::operator==(const wxRect& rect) const (height == rect.height)); } -// this doesn't compile -#if 0 const wxRect& wxRect::operator += (const wxRect& rect) -{ - *this = (*this + rect); +{ + *this = (*this + rect); return ( *this ) ; } wxRect wxRect::operator + (const wxRect& rect) const -{ +{ int x1 = wxMin(this->x, rect.x); int y1 = wxMin(this->y, rect.y); int y2 = wxMax(y+height, rect.height+rect.y); @@ -113,7 +111,6 @@ bool wxRect::Inside(int cx, int cy) const && ((cx - x) < width) ); } -#endif wxColourDatabase::wxColourDatabase (int type) : wxList (type) { @@ -259,6 +256,9 @@ wxColour *wxColourDatabase::FindColour(const wxString& colour) #ifdef __WXMSW__ else return NULL; #endif +#ifdef __WXPM__ + else return NULL; +#endif // TODO for other implementations. This should really go into // platform-specific directories. @@ -598,7 +598,12 @@ wxFont *wxFontList:: //#if defined(__X__) // each_font->GetFontId () == FamilyOrFontId) /* New font system */ //#else - each_font->GetFamily () == FamilyOrFontId && +#if defined(__WXGTK__) + (each_font->GetFamily() == FamilyOrFontId || + (each_font->GetFamily() == wxSWISS && FamilyOrFontId == wxDEFAULT)) && +#else + each_font->GetFamily() == FamilyOrFontId && +#endif ((each_font->GetFaceName() == _T("")) || each_font->GetFaceName() == Face)) //#endif return each_font;