From ee9b9581719f0748183d242eb509b130055fe8db Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 19 Dec 2014 00:49:27 -0500 Subject: [PATCH] Removed unnecessary HTHEME parameter in getFrameControlCheckboxSize(). --- wintable/new/checkboxes.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wintable/new/checkboxes.h b/wintable/new/checkboxes.h index 87c6c9a..1320fa1 100644 --- a/wintable/new/checkboxes.h +++ b/wintable/new/checkboxes.h @@ -30,7 +30,7 @@ static void drawFrameControlCheckbox(HDC dc, RECT *r, int cbState) panic("error drawing Table checkbox image with DrawFrameControl()"); } -static void getFrameControlCheckboxSize(HDC dc, int *width, int *height, HTHEME theme) +static void getFrameControlCheckboxSize(HDC dc, int *width, int *height) { // there's no real metric around // let's use SM_CX/YSMICON and hope for the best @@ -128,7 +128,7 @@ static void loadCheckboxThemeData(struct table *t) if (t->theme != NULL) // use the theme getThemeCheckboxSize(dc, &(t->checkboxWidth), &(t->checkboxHeight), t->theme); else // couldn't open; fall back - getFrameControlCheckboxSize(dc, &(t->checkboxWidth), &(t->checkboxHeight), t->theme); + getFrameControlCheckboxSize(dc, &(t->checkboxWidth), &(t->checkboxHeight)); if (ReleaseDC(t->hwnd, dc) == 0) panic("error releasing Table DC for loading checkbox theme data"); }