mirror of https://github.com/odrling/Aegisub
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
|
@ -28,11 +28,12 @@ namespace GUI {
|
||||||
if (ncheight < 1) ncheight = 1;
|
if (ncheight < 1) ncheight = 1;
|
||||||
|
|
||||||
bitmap = new wxBitmap(ncwidth, ncheight, PixelFormat::wxWidgetsType::BitsPerPixel);
|
bitmap = new wxBitmap(ncwidth, ncheight, PixelFormat::wxWidgetsType::BitsPerPixel);
|
||||||
memDC.SelectObject(*bitmap);
|
|
||||||
|
|
||||||
// Draw the bitmap
|
// Draw the bitmap
|
||||||
attachAndDraw();
|
attachAndDraw();
|
||||||
|
|
||||||
|
memDC.SelectObject(*bitmap);
|
||||||
|
|
||||||
// Request a full redraw of the window
|
// Request a full redraw of the window
|
||||||
Refresh(false);
|
Refresh(false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue