mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
added scrollbar to NativeLookEditor
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@223 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
+2
-1
@@ -37,9 +37,10 @@ int focused_control(const Window* window) {
|
||||
/// Fill a DC with a single color
|
||||
void clearDC(DC& dc, const wxBrush& brush) {
|
||||
wxSize size = dc.GetSize();
|
||||
wxPoint pos = dc.GetDeviceOrigin(); // don't you love undocumented methods?
|
||||
dc.SetPen(*wxTRANSPARENT_PEN);
|
||||
dc.SetBrush(brush);
|
||||
dc.DrawRectangle(0, 0, size.GetWidth(), size.GetHeight());
|
||||
dc.DrawRectangle(-pos.x, -pos.y, size.GetWidth(), size.GetHeight());
|
||||
}
|
||||
|
||||
void clearDC_black(DC& dc) {
|
||||
|
||||
Reference in New Issue
Block a user