exiting DirectDraw

gpmaker

Member
Joined
Jun 3, 2004
Messages
24
Hello again,

I'm finally getting the hang of DirectX's DirectDraw(very fast compared to GDI). I'm running my application in full screen mode. Everything works alrite but when my application closes....some of the programs i had open meanwhile start acting weird. Is there a specific way i'm suppose to "shut down" directx?

Here's wut i tried but doesn't seem to help:

VB.NET:
Private Sub Form1_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
 
draw.Dispose() 
draw = Nothing
'draw being the device
End Sub
 
Top Bottom