MCPcopy Create free account
hub / github.com/SimHacker/micropolis / DisplaySimGraph

Function DisplaySimGraph

micropolis-activity/src/sim/w_graph.c:102–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100
101
102static void
103DisplaySimGraph(ClientData clientData)
104{
105 SimGraph *graph = (SimGraph *) clientData;
106 Tk_Window tkwin = graph->tkwin;
107 Pixmap pm = None;
108 Drawable d;
109
110 graph->flags &= ~VIEW_REDRAW_PENDING;
111
112//fprintf(stderr, "DisplaySimGraph token %d\n", graph->draw_graph_token);
113
114 assert(graph->draw_graph_token != 0);
115
116 if (graph->draw_graph_token != 0) {
117// Tk_DeleteTimerHandler(graph->draw_graph_token);
118 graph->draw_graph_token = 0;
119 }
120
121 if (graph->visible && (tkwin != NULL) && Tk_IsMapped(tkwin)) {
122 DoUpdateGraph(graph);
123 }
124}
125
126
127void

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected