| 136 | } |
| 137 | |
| 138 | void ddgr_Close() { |
| 139 | if (!LIB_DATA(init)) |
| 140 | return; |
| 141 | |
| 142 | switch (LIB_DATA(subsystem)) { |
| 143 | case DDGR_GDIX_SUBSYSTEM: |
| 144 | case DDGR_GDI_SUBSYSTEM: |
| 145 | ddgr_gdi_Close(); |
| 146 | break; |
| 147 | case DDGR_DX_SUBSYSTEM: |
| 148 | ddgr_dx_Close(); |
| 149 | break; |
| 150 | default: |
| 151 | Int3(); |
| 152 | } |
| 153 | |
| 154 | LIB_DATA(subsystem) = 0; |
| 155 | LIB_DATA(init) = false; |
| 156 | } |
| 157 | |
| 158 | void ddgr_GetSubsystem(char *name, bool *fullscreen) { |
| 159 | strcpy(name, DDGR_subsystem_names[DDGR_subsysid]); |
no test coverage detected