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

Function PixmapInit

micropolis-activity/src/tk/tkpixmap.c:561–579  ·  view source on GitHub ↗
(tkwin)

Source from the content-addressed store, hash-verified

559 * Results:
560 * None.
561 *
562 * Side effects:
563 * Read the code.
564 *
565 *----------------------------------------------------------------------
566 */
567
568static void
569PixmapInit(tkwin)
570 Tk_Window tkwin; /* any window on screen where pixmap lives */
571{
572 Tcl_Interp *dummy;
573
574 dummy = Tcl_CreateInterp();
575 initialized = 1;
576 Tcl_InitHashTable(&nameTable, sizeof(NameKey)/sizeof(int));
577 Tcl_InitHashTable(&dataTable, sizeof(DataKey)/sizeof(int));
578 Tcl_InitHashTable(&predefTable, sizeof(NameKey)/sizeof(int));
579 Tcl_InitHashTable(&idTable, TCL_ONE_WORD_KEYS);
580
581 Tk_DefinePixmap(dummy, Tk_GetUid("gray50"), tkwin, None,
582 (char *)gray50_bits, gray50_width, gray50_height);

Callers 4

Tk_GetPixmapFunction · 0.85
Tk_DefinePixmapFunction · 0.85
Tk_GetPixmapFromDataFunction · 0.85
Tk_UndefinePixmapFunction · 0.85

Calls 5

Tcl_InitHashTableFunction · 0.85
Tk_DefinePixmapFunction · 0.85
Tk_GetUidFunction · 0.85
Tcl_CreateInterpFunction · 0.50
Tcl_DeleteInterpFunction · 0.50

Tested by

no test coverage detected