Initializes the Telcom rendering engine
| 1447 | |
| 1448 | // Initializes the Telcom rendering engine |
| 1449 | void TelcomRenderInit(void) { |
| 1450 | for (int monitor = 0; monitor < MAX_MONITOR; monitor++) { |
| 1451 | ASSERT(monitor < windowmap.num_of_windows); |
| 1452 | |
| 1453 | Telcom_system.Monitor_coords[monitor].left = windowmap.wm[monitor].x; |
| 1454 | Telcom_system.Monitor_coords[monitor].top = windowmap.wm[monitor].y; |
| 1455 | Telcom_system.Monitor_coords[monitor].right = windowmap.wm[monitor].x + windowmap.wm[monitor].width; |
| 1456 | Telcom_system.Monitor_coords[monitor].bottom = windowmap.wm[monitor].y + windowmap.wm[monitor].height; |
| 1457 | |
| 1458 | // Do we want to save these seperatly? |
| 1459 | Telcom_system.Monitor_coords[monitor].left += windowmap.wm[monitor].l_start_x - windowmap.wm[monitor].x; |
| 1460 | Telcom_system.Monitor_coords[monitor].right -= |
| 1461 | windowmap.wm[monitor].x + windowmap.wm[monitor].width - windowmap.wm[monitor].r_end_x; |
| 1462 | Telcom_system.Monitor_coords[monitor].top += windowmap.wm[monitor].t_top_y - windowmap.wm[monitor].y; |
| 1463 | Telcom_system.Monitor_coords[monitor].bottom -= |
| 1464 | windowmap.wm[monitor].y + windowmap.wm[monitor].height - windowmap.wm[monitor].b_bottom_y; |
| 1465 | } |
| 1466 | |
| 1467 | TC_callback = NULL; |
| 1468 | TC_current_screen = DUMMY_SCREEN; |
| 1469 | TelcomCreateScreenOverlays(); |
| 1470 | last_rendertime = timer_GetTime(); |
| 1471 | TelcomCreateDummyScreen(); |
| 1472 | TelcomRenderSetScreen(DUMMY_SCREEN); |
| 1473 | TelcomDisableGlitch(); |
| 1474 | TelcomDisableStatic(); |
| 1475 | Telcom_first_render = true; |
| 1476 | } |
| 1477 | |
| 1478 | // Closes down the Telcom rendering engine |
| 1479 | void TelcomRenderClose(void) { |
no test coverage detected