From 9c4c6152c9705039b183cc664aba0671b37db48f Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Sat, 8 Oct 2022 17:29:27 +0200 Subject: [PATCH] source/Platform/Win32/Win32Display.cpp: Whitespace fix. --- source/Platform/Win32/Win32Display.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/source/Platform/Win32/Win32Display.cpp b/source/Platform/Win32/Win32Display.cpp index d98bc40..a426c7c 100644 --- a/source/Platform/Win32/Win32Display.cpp +++ b/source/Platform/Win32/Win32Display.cpp @@ -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(&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) {