assdraw: fix assertion failure from reading and writing a bitmap at the same time

Originally committed to SVN as r6860.
This commit is contained in:
Thomas Goyne 2012-05-24 01:56:12 +00:00
parent f0eaaacd06
commit 01eba350b7
1 changed files with 23 additions and 22 deletions

View File

@ -28,11 +28,12 @@ namespace GUI {
if (ncheight < 1) ncheight = 1;
bitmap = new wxBitmap(ncwidth, ncheight, PixelFormat::wxWidgetsType::BitsPerPixel);
memDC.SelectObject(*bitmap);
// Draw the bitmap
attachAndDraw();
memDC.SelectObject(*bitmap);
// Request a full redraw of the window
Refresh(false);
}