fix off-by-one error in Win32ColorDrawBuf leading to crashes when minimized

This commit is contained in:
Dmitry Popov 2016-03-03 21:33:38 +07:00
parent 5419e6714b
commit f7e0fa2503
1 changed files with 1 additions and 1 deletions

View File

@ -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) {