mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 13:17:00 -04:00
* compatibility with wxWdigets 2.9+: SetClippingRegion -> SetDeviceClippingRegion
* overload wxEVT_ERASE_BACKGROUND, to reduce flicker git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1555 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -24,7 +24,7 @@ DECLARE_EVENT_TYPE(EVENT_SIZE_CHANGE, <not used>)
|
||||
/// A control to view a single card
|
||||
class CardViewer : public wxControl, public DataViewer {
|
||||
public:
|
||||
CardViewer(Window* parent, int id, long style = 0);
|
||||
CardViewer(Window* parent, int id, long style = wxBORDER_THEME);
|
||||
|
||||
/// Get a dc to draw on the card outside onPaint
|
||||
/** May NOT be called while in onPaint/draw */
|
||||
@@ -55,6 +55,7 @@ class CardViewer : public wxControl, public DataViewer {
|
||||
private:
|
||||
DECLARE_EVENT_TABLE();
|
||||
|
||||
void onEraseBackground(wxEraseEvent&) {}
|
||||
void onPaint(wxPaintEvent&);
|
||||
|
||||
Bitmap buffer; ///< Off-screen buffer we draw to
|
||||
|
||||
Reference in New Issue
Block a user