src/transparency_gui.cpp
changeset 9273 35e0224ea8f1
parent 9203 082fbf0500c4
child 9317 f14eb8815829
equal deleted inserted replaced
9272:e64b518a7b54 9273:35e0224ea8f1
    47 		 * also when we use shortcuts */
    47 		 * also when we use shortcuts */
    48 		for (uint i = TTW_WIDGET_SIGNS; i < TTW_WIDGET_END; i++) {
    48 		for (uint i = TTW_WIDGET_SIGNS; i < TTW_WIDGET_END; i++) {
    49 			this->SetWidgetLoweredState(i, IsTransparencySet((TransparencyOption)(i - TTW_WIDGET_SIGNS)));
    49 			this->SetWidgetLoweredState(i, IsTransparencySet((TransparencyOption)(i - TTW_WIDGET_SIGNS)));
    50 		}
    50 		}
    51 
    51 
    52 		DrawWindowWidgets(this);
    52 		this->DrawWidgets();
    53 		for (uint i = TO_SIGNS; i < TO_END; i++) {
    53 		for (uint i = TO_SIGNS; i < TO_END; i++) {
    54 			if (HasBit(_transparency_lock, i)) DrawSprite(SPR_LOCK, PAL_NONE, this->widget[TTW_WIDGET_SIGNS + i].left + 1, this->widget[TTW_WIDGET_SIGNS + i].top + 1);
    54 			if (HasBit(_transparency_lock, i)) DrawSprite(SPR_LOCK, PAL_NONE, this->widget[TTW_WIDGET_SIGNS + i].left + 1, this->widget[TTW_WIDGET_SIGNS + i].top + 1);
    55 		}
    55 		}
    56 
    56 
    57 		/* Do not draw button for invisible loading indicators */
    57 		/* Do not draw button for invisible loading indicators */