mirror of https://github.com/buggins/dlangui.git
fix off-by-one error in Win32ColorDrawBuf leading to crashes when minimized
This commit is contained in:
parent
5419e6714b
commit
f7e0fa2503
|
@ -157,7 +157,7 @@ class Win32ColorDrawBuf : ColorDrawBufBase {
|
|||
int len = _dx * _dy;
|
||||
//for (int i = 0; i < len; i++)
|
||||
// _pixels[i] = color;
|
||||
_pixels[0 .. len - 1] = color;
|
||||
_pixels[0 .. len] = color;
|
||||
}
|
||||
/// draw to win32 device context
|
||||
void drawTo(HDC dc, int x, int y) {
|
||||
|
|
Loading…
Reference in New Issue