MCPcopy Create free account
hub / github.com/NetHack/NetHack / ask_enable

Function ask_enable

outdated/sys/mac/macmenu.c:272–288  ·  view source on GitHub ↗

Enable the dialog item with the given index */

Source from the content-addressed store, hash-verified

270
271/* Enable the dialog item with the given index */
272static void
273ask_enable(DialogRef wind, short item, int enable)
274{
275 short type;
276 Handle handle;
277 Rect rect;
278
279 /* Enable or disable the appropriate item */
280 GetDialogItem(wind, item, &type, &handle, &rect);
281 if (enable)
282 type &= ~itemDisable;
283 else
284 type |= itemDisable;
285 HiliteControl((ControlHandle) handle, enable ? 0 : 255);
286 SetDialogItem(wind, item, type, handle, &rect);
287 return;
288}
289
290static pascal void
291ask_redraw(DialogRef wind, DialogItemIndex item)

Callers 1

mac_asknameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected