src/transparency_gui.cpp
changeset 8493 3ab458f7cff4
parent 8345 6caa3fdb972c
child 8602 9e75e594a068
equal deleted inserted replaced
8492:d61f7a733d19 8493:3ab458f7cff4
    35 	switch (e->event) {
    35 	switch (e->event) {
    36 		case WE_PAINT:
    36 		case WE_PAINT:
    37 			/* must be sure that the widgets show the transparency variable changes
    37 			/* must be sure that the widgets show the transparency variable changes
    38 			 * also when we use shortcuts */
    38 			 * also when we use shortcuts */
    39 			for (uint i = TTW_WIDGET_SIGNS; i < TTW_WIDGET_END; i++) {
    39 			for (uint i = TTW_WIDGET_SIGNS; i < TTW_WIDGET_END; i++) {
    40 				SetWindowWidgetLoweredState(w, i, IsTransparencySet((TransparencyOption)(i - TTW_WIDGET_SIGNS)));
    40 				w->SetWidgetLoweredState(i, IsTransparencySet((TransparencyOption)(i - TTW_WIDGET_SIGNS)));
    41 			}
    41 			}
    42 			DrawWindowWidgets(w);
    42 			DrawWindowWidgets(w);
    43 			break;
    43 			break;
    44 
    44 
    45 		case WE_CLICK:
    45 		case WE_CLICK: