Refactor shader_param_ctrl_t

This commit is contained in:
twinaphex 2016-06-04 06:55:29 +02:00
parent e6c7450c53
commit f2f38be4e6

View File

@ -94,10 +94,7 @@ typedef struct
enum shader_param_ctrl_type type;
union
{
struct
{
HWND hwnd;
} checkbox;
ui_window_win32_t checkbox;
struct
{
HWND hwnd;
@ -200,7 +197,7 @@ static void shader_dlg_params_clear(void)
case SHADER_PARAM_CTRL_NONE:
break;
case SHADER_PARAM_CTRL_CHECKBOX:
DestroyWindow(control->checkbox.hwnd);
ui_window_win32_destroy(&control->checkbox);
break;
case SHADER_PARAM_CTRL_TRACKBAR:
DestroyWindow(control->trackbar.label_title);