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

Function TelcomCreateCorners

Descent3/TelCom.cpp:1776–1792  ·  view source on GitHub ↗

Allocates the bitmaps for corners of each monitor

Source from the content-addressed store, hash-verified

1774
1775// Allocates the bitmaps for corners of each monitor
1776void TelcomCreateCorners(void) {
1777 for (int monitor = 0; monitor < MAX_MONITOR; monitor++) {
1778 if ((windowmap.wm[monitor].t_top_y != -1) && (windowmap.wm[monitor].b_top_y != -1)) {
1779 bm_CreateChunkedBitmap(windowmap.wm[monitor].lt_bmp, &lt_corners[monitor]);
1780 bm_CreateChunkedBitmap(windowmap.wm[monitor].rt_bmp, &rt_corners[monitor]);
1781 bm_CreateChunkedBitmap(windowmap.wm[monitor].lb_bmp, &lb_corners[monitor]);
1782 bm_CreateChunkedBitmap(windowmap.wm[monitor].rb_bmp, &rb_corners[monitor]);
1783 has_corners[monitor] = true;
1784 } else {
1785 lt_corners[monitor].pw = lt_corners[monitor].ph = 0;
1786 rt_corners[monitor].pw = rt_corners[monitor].ph = 0;
1787 lb_corners[monitor].pw = lb_corners[monitor].ph = 0;
1788 rb_corners[monitor].pw = rb_corners[monitor].ph = 0;
1789 has_corners[monitor] = false;
1790 }
1791 }
1792}
1793
1794// Frees the bitmaps used for the corners of each monitor
1795void TelcomFreeCorners(void) {

Callers 1

Calls 1

bm_CreateChunkedBitmapFunction · 0.85

Tested by

no test coverage detected