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

Function build_bmfh

win/share/tile2bmp.c:274–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274RESTORE_WARNINGS
275
276static void
277build_bmfh(BITMAPFILEHEADER* pbmfh)
278{
279 pbmfh->bfType = leshort(0x4D42);
280 pbmfh->bfSize = lelong(bmpsize);
281 pbmfh->bfReserved1 = (uint32_t) 0;
282 pbmfh->bfReserved2 = (uint32_t) 0;
283 pbmfh->bfOffBits = lelong(sizeof bmp.bmfh + sizeof bmp.bmih
284 + (RGBQUAD_COUNT * sizeof(RGBQUAD)));
285}
286
287static void
288build_bmih(UNALIGNED_POINTER BITMAPINFOHEADER* pbmih)

Callers 1

mainFunction · 0.85

Calls 2

leshortFunction · 0.85
lelongFunction · 0.85

Tested by

no test coverage detected