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

Function ui_GetBitmapWidth

ui/UIDraw.cpp:223–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223int ui_GetBitmapWidth(UIBitmapItem *bi) {
224 if (bi->is_chunked()) {
225 chunked_bitmap *chunk = bi->get_chunked_bitmap();
226 return chunk->pw;
227 } else {
228 return bm_w(bi->get_bitmap(), 0);
229 }
230}
231
232int ui_GetBitmapHeight(UIBitmapItem *bi) {
233 if (bi->is_chunked()) {

Callers 1

widthMethod · 0.85

Calls 4

bm_wFunction · 0.85
is_chunkedMethod · 0.80
get_chunked_bitmapMethod · 0.80
get_bitmapMethod · 0.80

Tested by

no test coverage detected