mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Removed last of the BeginDrawing/EndDrawing calls;
Added english_number_ordinal script function; Working on symbols with a different aspect ratio (i.e. wider/smaller symbols) git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@558 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -353,9 +353,7 @@ wxSize ImageSlicePreview::DoGetBestSize() const {
|
||||
|
||||
void ImageSlicePreview::onPaint(wxPaintEvent&) {
|
||||
wxPaintDC dc(this);
|
||||
dc.BeginDrawing();
|
||||
draw(dc);
|
||||
dc.EndDrawing();
|
||||
}
|
||||
void ImageSlicePreview::draw(DC& dc) {
|
||||
if (!bitmap.Ok()) {
|
||||
@@ -436,9 +434,7 @@ void ImageSliceSelector::onSize(wxSizeEvent&) {
|
||||
|
||||
void ImageSliceSelector::onPaint(wxPaintEvent&) {
|
||||
wxBufferedPaintDC dc(this);
|
||||
dc.BeginDrawing();
|
||||
draw(dc);
|
||||
dc.EndDrawing();
|
||||
}
|
||||
void ImageSliceSelector::draw(DC& dc) {
|
||||
if (!bitmap.Ok()) createBitmap();
|
||||
|
||||
Reference in New Issue
Block a user