summaryrefslogtreecommitdiff
path: root/redo/imagelist_windows.c
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-25 11:41:37 -0400
committerPietro Gagliardi <[email protected]>2014-08-25 11:41:37 -0400
commitfe01ebbbcde9f4f058b3967851ccf2f4718710c1 (patch)
treeb0bf65f456caad83431895f121667c6aba7b505f /redo/imagelist_windows.c
parent3b5e8f5e7d12a4273973ae092ccd9129fa202336 (diff)
Dropped checkboxImageList. This is the first of a multi-part commit stream becasue when I tried doing it alll at once the program broke in utterly mysterious ways.
Diffstat (limited to 'redo/imagelist_windows.c')
-rw-r--r--redo/imagelist_windows.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/redo/imagelist_windows.c b/redo/imagelist_windows.c
index 0f14180..6e21187 100644
--- a/redo/imagelist_windows.c
+++ b/redo/imagelist_windows.c
@@ -260,16 +260,14 @@ static HIMAGELIST newCheckboxImageList(HWND hwnddc, void (*sizefunc)(HDC, int *,
return il;
}
-HIMAGELIST checkboxImageList = NULL;
-
-void makeCheckboxImageList(HWND hwnddc)
+HIMAGELIST makeCheckboxImageList(HWND hwnddc)
{
if (theme == NULL) // try to open the theme
openTheme(hwnddc);
if (theme != NULL) { // use the theme
- checkboxImageList = newCheckboxImageList(hwnddc, themeSize, themeImage);
+ return newCheckboxImageList(hwnddc, themeSize, themeImage);
return;
}
// couldn't open; fall back
- checkboxImageList = newCheckboxImageList(hwnddc, dfcSize, dfcImage);
+ return newCheckboxImageList(hwnddc, dfcSize, dfcImage);
}