source/Platform/Win32/Win32Display.cpp: Whitespace fix.
This commit is contained in:
parent
9b683e9a5c
commit
9c4c6152c9
1 changed files with 13 additions and 13 deletions
|
|
@ -182,18 +182,18 @@ void Win32Display::setIcon(unsigned int width, unsigned int height, const uint8_
|
||||||
unsigned char *bmp_data = NULL;
|
unsigned char *bmp_data = NULL;
|
||||||
|
|
||||||
::ZeroMemory(&bi, sizeof(bi));
|
::ZeroMemory(&bi, sizeof(bi));
|
||||||
bi.bV5Size = sizeof(bi);
|
bi.bV5Size = sizeof(bi);
|
||||||
bi.bV5Width = width;
|
bi.bV5Width = width;
|
||||||
bi.bV5Height = height;
|
bi.bV5Height = height;
|
||||||
bi.bV5Planes = 1;
|
bi.bV5Planes = 1;
|
||||||
bi.bV5BitCount = 32;
|
bi.bV5BitCount = 32;
|
||||||
bi.bV5Compression = BI_RGB;
|
bi.bV5Compression = BI_RGB;
|
||||||
bi.bV5CSType = LCS_WINDOWS_COLOR_SPACE;
|
bi.bV5CSType = LCS_WINDOWS_COLOR_SPACE;
|
||||||
bi.bV5Intent = LCS_GM_IMAGES;
|
bi.bV5Intent = LCS_GM_IMAGES;
|
||||||
|
|
||||||
hdc = ::GetDC(NULL);
|
hdc = ::GetDC(NULL);
|
||||||
bmp_color = ::CreateDIBSection(hdc, reinterpret_cast<BITMAPINFO*>(&bi),
|
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);
|
::ReleaseDC(NULL, hdc);
|
||||||
|
|
||||||
if (!bmp_color) {
|
if (!bmp_color) {
|
||||||
|
|
@ -217,10 +217,10 @@ void Win32Display::setIcon(unsigned int width, unsigned int height, const uint8_
|
||||||
}
|
}
|
||||||
|
|
||||||
::ZeroMemory(&ii, sizeof(ii));
|
::ZeroMemory(&ii, sizeof(ii));
|
||||||
ii.fIcon = TRUE;
|
ii.fIcon = TRUE;
|
||||||
ii.xHotspot = 0;
|
ii.xHotspot = 0;
|
||||||
ii.yHotspot = 0;
|
ii.yHotspot = 0;
|
||||||
ii.hbmColor = bmp_color;
|
ii.hbmColor = bmp_color;
|
||||||
ii.hbmMask = bmp_mask;
|
ii.hbmMask = bmp_mask;
|
||||||
|
|
||||||
if (m_icon) {
|
if (m_icon) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue