MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / ui_GetBitmapHeight

Function ui_GetBitmapHeight

ui/UIDraw.cpp:232–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232int ui_GetBitmapHeight(UIBitmapItem *bi) {
233 if (bi->is_chunked()) {
234 chunked_bitmap *chunk = bi->get_chunked_bitmap();
235 return chunk->ph;
236 } else {
237 return bm_h(bi->get_bitmap(), 0);
238 }
239}
240
241// sets font for text drawing.
242void ui_DrawSetFont(int handle) { grtext_SetFont(handle); }

Callers 1

heightMethod · 0.85

Calls 4

bm_hFunction · 0.85
is_chunkedMethod · 0.80
get_chunked_bitmapMethod · 0.80
get_bitmapMethod · 0.80

Tested by

no test coverage detected