X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2335974794f0f95aa7a538de40294d34467327a1..f321ab7fb40525098cea6594ffbf2daf0186b1a3:/include/wx/gdicmn.h diff --git a/include/wx/gdicmn.h b/include/wx/gdicmn.h index bc3efb2c50..ba16059670 100644 --- a/include/wx/gdicmn.h +++ b/include/wx/gdicmn.h @@ -75,6 +75,7 @@ enum wxBitmapType wxBITMAP_TYPE_ICON_RESOURCE, wxBITMAP_TYPE_ANI, wxBITMAP_TYPE_IFF, + wxBITMAP_TYPE_TGA, wxBITMAP_TYPE_MACCURSOR, wxBITMAP_TYPE_MACCURSOR_RESOURCE, wxBITMAP_TYPE_ANY = 50 @@ -156,6 +157,9 @@ enum wxStockCursor #elif defined(__WXMGL__) // Initialize from an included XPM #define wxICON(X) wxIcon( (const char**) X##_xpm ) +#elif defined(__WXDFB__) + // Initialize from an included XPM + #define wxICON(X) wxIcon( (const char**) X##_xpm ) #elif defined(__WXGTK__) // Initialize from an included XPM #define wxICON(X) wxIcon( (const char**) X##_xpm ) @@ -184,6 +188,7 @@ enum wxStockCursor defined(__WXX11__) || \ defined(__WXMAC__) || \ defined(__WXMGL__) || \ + defined(__WXDFB__) || \ defined(__WXCOCOA__) // Initialize from an included XPM #define wxBITMAP(name) wxBitmap( (const char**) name##_xpm ) @@ -238,8 +243,8 @@ public: void DecBy(int d) { DecBy(d, d); } - void Scale(float xscale, float yscale) - { x = (int)(x*xscale); y = (int)(y*yscale); } + wxSize& Scale(float xscale, float yscale) + { x = (int)(x*xscale); y = (int)(y*yscale); return *this; } // accessors void Set(int xx, int yy) { x = xx; y = yy; }