MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / SetWindowClassesDirty

Function SetWindowClassesDirty

src/window.cpp:3205–3210  ·  view source on GitHub ↗

* Mark all windows of a particular class as dirty (in need of repainting) * @param cls Window class */

Source from the content-addressed store, hash-verified

3203 * @param cls Window class
3204 */
3205void SetWindowClassesDirty(WindowClass cls)
3206{
3207 for (const Window *w : Window::Iterate()) {
3208 if (w->window_class == cls) w->SetDirty();
3209 }
3210}
3211
3212/**
3213 * Mark this window as resized and in need of OnResize() event.

Callers 15

ChangeValueMethod · 0.85
CmdSkipToOrderFunction · 0.85
ProcessOrdersFunction · 0.85
OnNewEconomyDayMethod · 0.85
CheckShipStayInDepotFunction · 0.85
CmdRenameDepotFunction · 0.85
CmdReverseTrainDirectionFunction · 0.85
CheckTrainStayInDepotFunction · 0.85
OnNewEconomyDayMethod · 0.85
VehicleEnterDepotFunction · 0.85
vehicle.cppFile · 0.85

Calls 1

SetDirtyMethod · 0.45

Tested by

no test coverage detected