MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / Destroy

Method Destroy

source/Windows/Win32Frame.cpp:222–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220}
221
222void 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//===========================================================================
246void Win32Frame::Benchmark(void)

Callers 2

VideoCreateDIBSectionMethod · 0.45
WndProcMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected