Exemplo n.º 1
0
MCScreenDC::~MCScreenDC()
{
	MCNotifyFinalize();

	showtaskbar();
	while (opened)
		close(True);
	if (ncolors != 0)
	{
		uint2 i;
		for (i = 0 ; i < ncolors ; i++)
		{
			if (colornames[i] != NULL)
				delete colornames[i];
		}
		delete colors;
		delete colornames;
		delete allocs;
	}
	while (pendingevents != NULL)
	{
		MCEventnode *tptr =(MCEventnode *)pendingevents->remove(pendingevents);
		delete tptr;
	}
}
Exemplo n.º 2
0
MCScreenDC::~MCScreenDC(void)
{
	// Delete any lingering active touches (clear_touches does just the job)
	clear_touches();
	
	// Delete the main windows stack.
	delete m_main_windows;
	
	// MW-2013-06-18: [[ XPlatNotify ]] Finalize the notify module.
	MCNotifyFinalize();
}
Exemplo n.º 3
0
MCScreenDC::~MCScreenDC()
{
    MCNotifyFinalize();

    if (opened)
        close(True);
    while (pendingevents != NULL)
    {
        MCEventnode *tptr =(MCEventnode *)pendingevents->remove(pendingevents);
        delete tptr;
    }
    if (bgw != NULL)
        DisposeGWorld(bgw);
}