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

Function TelcomFreeCorners

Descent3/TelCom.cpp:1795–1818  ·  view source on GitHub ↗

Frees the bitmaps used for the corners of each monitor

Source from the content-addressed store, hash-verified

1793
1794// Frees the bitmaps used for the corners of each monitor
1795void TelcomFreeCorners(void) {
1796 for (int monitor = 0; monitor < MAX_MONITOR; monitor++) {
1797 if (!has_corners[monitor])
1798 continue;
1799
1800 // destroy the chunked bitmaps of the corners
1801 if (lt_corners[monitor].pw != 0) {
1802 bm_DestroyChunkedBitmap(&lt_corners[monitor]);
1803 lt_corners[monitor].pw = lt_corners[monitor].ph = 0;
1804 }
1805 if (rt_corners[monitor].pw != 0) {
1806 bm_DestroyChunkedBitmap(&rt_corners[monitor]);
1807 rt_corners[monitor].pw = rt_corners[monitor].ph = 0;
1808 }
1809 if (lb_corners[monitor].pw != 0) {
1810 bm_DestroyChunkedBitmap(&lb_corners[monitor]);
1811 lb_corners[monitor].pw = lb_corners[monitor].ph = 0;
1812 }
1813 if (rb_corners[monitor].pw != 0) {
1814 bm_DestroyChunkedBitmap(&rb_corners[monitor]);
1815 rb_corners[monitor].pw = rb_corners[monitor].ph = 0;
1816 }
1817 }
1818}
1819
1820void TelcomDisplayCorners(void) {
1821 for (int monitor = 0; monitor < MAX_MONITOR; monitor++) {

Callers 1

Calls 1

bm_DestroyChunkedBitmapFunction · 0.85

Tested by

no test coverage detected