1
0
Fork 0

source/Platform/Win32/Win32Display.cpp: Whitespace fix.

This commit is contained in:
Henrik Hautakoski 2022-10-08 17:29:27 +02:00
parent 9b683e9a5c
commit 9c4c6152c9

View file

@ -182,18 +182,18 @@ void Win32Display::setIcon(unsigned int width, unsigned int height, const uint8_
unsigned char *bmp_data = NULL;
::ZeroMemory(&bi, sizeof(bi));
bi.bV5Size = sizeof(bi);
bi.bV5Width = width;
bi.bV5Height = height;
bi.bV5Planes = 1;
bi.bV5BitCount = 32;
bi.bV5Compression = BI_RGB;
bi.bV5CSType = LCS_WINDOWS_COLOR_SPACE;
bi.bV5Intent = LCS_GM_IMAGES;
bi.bV5Size = sizeof(bi);
bi.bV5Width = width;
bi.bV5Height = height;
bi.bV5Planes = 1;
bi.bV5BitCount = 32;
bi.bV5Compression = BI_RGB;
bi.bV5CSType = LCS_WINDOWS_COLOR_SPACE;
bi.bV5Intent = LCS_GM_IMAGES;
hdc = ::GetDC(NULL);
bmp_color = ::CreateDIBSection(hdc, reinterpret_cast<BITMAPINFO*>(&bi),
DIB_RGB_COLORS, (void **) &bmp_data, NULL, 0);
DIB_RGB_COLORS, (void **) &bmp_data, NULL, 0);
::ReleaseDC(NULL, hdc);
if (!bmp_color) {
@ -217,10 +217,10 @@ void Win32Display::setIcon(unsigned int width, unsigned int height, const uint8_
}
::ZeroMemory(&ii, sizeof(ii));
ii.fIcon = TRUE;
ii.xHotspot = 0;
ii.yHotspot = 0;
ii.hbmColor = bmp_color;
ii.fIcon = TRUE;
ii.xHotspot = 0;
ii.yHotspot = 0;
ii.hbmColor = bmp_color;
ii.hbmMask = bmp_mask;
if (m_icon) {