| 220 | } |
| 221 | |
| 222 | void Win32Frame::Destroy(void) |
| 223 | { |
| 224 | // DESTROY BUFFERS |
| 225 | delete[] g_pFramebufferinfo; |
| 226 | g_pFramebufferinfo = NULL; |
| 227 | |
| 228 | // DESTROY FRAME BUFFER |
| 229 | DeleteDC(g_hDeviceDC); |
| 230 | g_hDeviceDC = (HDC)0; |
| 231 | |
| 232 | DeleteObject(g_hDeviceBitmap); // this invalidates the Video's FrameBuffer pointer |
| 233 | GetVideo().Destroy(); // this resets the Video's FrameBuffer pointer |
| 234 | g_hDeviceBitmap = (HBITMAP)0; |
| 235 | |
| 236 | // DESTROY LOGO |
| 237 | if (g_hLogoBitmap) { |
| 238 | DeleteObject(g_hLogoBitmap); |
| 239 | g_hLogoBitmap = (HBITMAP)0; |
| 240 | } |
| 241 | |
| 242 | DDUninit(); |
| 243 | } |
| 244 | |
| 245 | //=========================================================================== |
| 246 | void Win32Frame::Benchmark(void) |
no outgoing calls
no test coverage detected