Fix compiler warnings
This commit is contained in:
parent
c262eafe97
commit
2d203cc713
|
@ -852,7 +852,9 @@ add_redrawwidget(struct ctk_widget *w)
|
||||||
static void
|
static void
|
||||||
widget_redraw(struct ctk_widget *widget)
|
widget_redraw(struct ctk_widget *widget)
|
||||||
{
|
{
|
||||||
|
#if CTK_CONF_WINDOWS
|
||||||
struct ctk_window *window;
|
struct ctk_window *window;
|
||||||
|
#endif /* CTK_CONF_WINDOWS */
|
||||||
|
|
||||||
if(mode != CTK_MODE_NORMAL || widget == NULL) {
|
if(mode != CTK_MODE_NORMAL || widget == NULL) {
|
||||||
return;
|
return;
|
||||||
|
@ -870,8 +872,8 @@ widget_redraw(struct ctk_widget *widget)
|
||||||
if(menus.open == NULL)
|
if(menus.open == NULL)
|
||||||
#endif /* CTK_CONF_MENUS */
|
#endif /* CTK_CONF_MENUS */
|
||||||
{
|
{
|
||||||
window = widget->window;
|
|
||||||
#if CTK_CONF_WINDOWS
|
#if CTK_CONF_WINDOWS
|
||||||
|
window = widget->window;
|
||||||
if(window == dialog) {
|
if(window == dialog) {
|
||||||
ctk_draw_widget(widget, CTK_FOCUS_DIALOG, 0, height);
|
ctk_draw_widget(widget, CTK_FOCUS_DIALOG, 0, height);
|
||||||
} else if(dialog == NULL &&
|
} else if(dialog == NULL &&
|
||||||
|
|
Loading…
Reference in a new issue