Gfk: This is the best mouse fix problem, by Indiepath, add straight after Flip:
Function FlushGraphics:Int() ?Win32 If TD3D7Max2DDriver(_max2dDriver) Local sdesc:DDSurfaceDesc2 = New DDSurfaceDesc2 sdesc.dwSize = SizeOf(sdesc) Local res:Int = PrimaryDevice.backbuffer.Lock(Null,sdesc,DDLOCK_WAIT|DDLOCK_READONLY,Null) PrimaryDevice.backbuffer.unlock(Null) Return res EndIf ? End Function