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

Function X11_get_map_font_struct

win/X11/winmap.c:1865–1879  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1863}
1864
1865static XFontStruct *
1866X11_get_map_font_struct(struct xwindow *wp)
1867{
1868#ifdef ENHANCED_SYMBOLS
1869 struct map_info_t *map_info = wp->map_information;
1870 XFontStruct *fs = map_info->text_map.font;
1871
1872 if (fs == NULL) {
1873 fs = WindowFontStruct(wp->w);
1874 }
1875 return fs;
1876#else
1877 return WindowFontStruct(wp->w);
1878#endif
1879}
1880
1881/*
1882 * Destroy this map window.

Callers 2

get_char_infoFunction · 0.85
X11_get_map_fontFunction · 0.85

Calls 1

WindowFontStructFunction · 0.85

Tested by

no test coverage detected