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

Function grfont_ClearBitmap

grtext/grfont.cpp:1027–1038  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1025}
1026
1027void grfont_ClearBitmap(int bmp_handle) {
1028 int dx, dy;
1029 int rowsize_w = bm_rowsize(bmp_handle, 0) / 2;
1030 uint16_t *bmpdata = bm_data(bmp_handle, 0);
1031
1032 for (dy = 0; dy < bm_h(bmp_handle, 0); dy++) {
1033 for (dx = 0; dx < rowsize_w; dx++)
1034 bmpdata[dx] = NEW_TRANSPARENT_COLOR;
1035
1036 bmpdata += rowsize_w;
1037 }
1038}
1039
1040#ifndef RELEASE
1041void grfont_Spew(int font, int x, int y) {

Callers 1

Calls 3

bm_rowsizeFunction · 0.85
bm_dataFunction · 0.85
bm_hFunction · 0.85

Tested by

no test coverage detected