summaryrefslogtreecommitdiffstats
path: root/win/tkWinIco.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-06-17 13:02:57 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-06-17 13:02:57 (GMT)
commita983245e41399dd76602e12f17bc3170de207680 (patch)
tree259f9d0d5c7d566b56ccbd47b46ed7d05ac528c5 /win/tkWinIco.c
parentc7155c6da59086934fe2e1567f5c3b0335a5b693 (diff)
downloadtk-a983245e41399dd76602e12f17bc3170de207680.zip
tk-a983245e41399dd76602e12f17bc3170de207680.tar.gz
tk-a983245e41399dd76602e12f17bc3170de207680.tar.bz2
Move scrollbar sanity checks from platform-code to generic. Fix indenting in win/* files
Diffstat (limited to 'win/tkWinIco.c')
-rw-r--r--win/tkWinIco.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/win/tkWinIco.c b/win/tkWinIco.c
index 134e7f0..899d437 100644
--- a/win/tkWinIco.c
+++ b/win/tkWinIco.c
@@ -171,9 +171,9 @@ CreateIcoFromPhoto(
bmInfo.bmiHeader.biCompression = BI_RGB;
iconInfo.hbmColor = CreateDIBSection(NULL, &bmInfo, DIB_RGB_COLORS,
- &bgraPixel.voidPtr, NULL, 0);
+ &bgraPixel.voidPtr, NULL, 0);
if (!iconInfo.hbmColor) {
- return NULL;
+ return NULL;
}
/*
@@ -182,10 +182,10 @@ CreateIcoFromPhoto(
bufferSize = height * width * 4;
for (idx = 0 ; idx < bufferSize ; idx += 4) {
- bgraPixel.ptr[idx] = block.pixelPtr[idx+2];
- bgraPixel.ptr[idx+1] = block.pixelPtr[idx+1];
- bgraPixel.ptr[idx+2] = block.pixelPtr[idx+0];
- bgraPixel.ptr[idx+3] = block.pixelPtr[idx+3];
+ bgraPixel.ptr[idx] = block.pixelPtr[idx+2];
+ bgraPixel.ptr[idx+1] = block.pixelPtr[idx+1];
+ bgraPixel.ptr[idx+2] = block.pixelPtr[idx+0];
+ bgraPixel.ptr[idx+3] = block.pixelPtr[idx+3];
}
/*
@@ -197,10 +197,10 @@ CreateIcoFromPhoto(
bmInfo.bmiHeader.biBitCount = 1;
iconInfo.hbmMask = CreateDIBSection(NULL, &bmInfo, DIB_RGB_COLORS,
- &bgraMask.voidPtr, NULL, 0);
+ &bgraMask.voidPtr, NULL, 0);
if (!iconInfo.hbmMask) {
- DeleteObject(iconInfo.hbmColor);
- return NULL;
+ DeleteObject(iconInfo.hbmColor);
+ return NULL;
}
memset(bgraMask.ptr, 0, width*height/8);
@@ -213,7 +213,7 @@ CreateIcoFromPhoto(
DeleteObject(iconInfo.hbmColor);
DeleteObject(iconInfo.hbmMask);
if (hIcon == NULL) {
- return NULL;
+ return NULL;
}
return hIcon;