compatibility with wxWdigets 2.9+: SetLogicalFunction takes wxRasterOperationMode instead of int

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1529 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2010-12-07 21:05:00 +00:00
parent 65cde6c8f3
commit 6f922eac7d
2 changed files with 8 additions and 3 deletions
+6 -1
View File
@@ -155,6 +155,11 @@ enum RenderQuality {
QUALITY_AA, ///< Our own anti aliassing
};
#if wxVERSION_NUMBER < 2900
// argument type to SetLogicalFunction
typedef int wxRasterOperationMode;
#endif
/// A DC with rotation applied
/** All draw** functions take internal coordinates.
*/
@@ -198,7 +203,7 @@ class RotatedDC : public Rotation {
void SetPen(const wxPen&);
void SetBrush(const wxBrush&);
void SetTextForeground(const Color&);
void SetLogicalFunction(int function);
void SetLogicalFunction(wxRasterOperationMode function);
void SetFont(const wxFont& font);
/// Set the font, scales for zoom and high_quality