[MSPAINT] Trivial improvements

- Use SetPixelV instead of SetPixel.
- BI_RGB is zero.
- Use CS_HREDRAW and CS_VREDRAW.
CORE-18867
This commit is contained in:
Katayama Hirofumi MZ 2023-06-14 17:42:21 +09:00
parent 3b4422b41b
commit 318b2e786d
6 changed files with 6 additions and 13 deletions

View file

@ -33,7 +33,6 @@ CreateDIBWithProperties(int width, int height)
bmi.bmiHeader.biHeight = height;
bmi.bmiHeader.biPlanes = 1;
bmi.bmiHeader.biBitCount = 24;
bmi.bmiHeader.biCompression = BI_RGB;
return CreateDIBSection(NULL, &bmi, DIB_RGB_COLORS, NULL, NULL, 0);
}