Example #1
0
        public void Shutdown()
        {
            renderThread.Abort();
            if (interlaceSprite != null)
            {
                interlaceSprite.Dispose();
            }
            if (interlaceOverlay2 != null)
            {
                interlaceOverlay2.Dispose();
            }

            gdiDisplay.Dispose();
            tapeIcon.Dispose();
            diskIcon.Dispose();

            if (displaySurface != null)
            {
                displaySurface.Dispose();
            }
            if (dxDisplay != null)
            {
                dxDisplay.Dispose();
            }
            if (sprite != null)
            {
                sprite.Dispose();
            }
            if (dxDevice != null)
            {
                dxDevice.Dispose();
            }
            if (direct3D9 != null)
            {
                direct3D9.Dispose();
            }
        }
 public override void Destroy()
 {
     Device9.Dispose();
     D3D.Dispose();
 }