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:
parent
f0eaaacd06
commit
01eba350b7
1 changed files with 23 additions and 22 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue