diff --git a/lib/vis_milkdrop/support.cpp b/lib/vis_milkdrop/support.cpp index 2ebf068..01e114a 100644 --- a/lib/vis_milkdrop/support.cpp +++ b/lib/vis_milkdrop/support.cpp @@ -198,9 +198,9 @@ void PrepareFor2DDrawing(DX11Context* pDevice) DirectX::XMMATRIX Ortho2D = DirectX::XMMatrixOrthographicLH(2.0f, -2.0f, 0.0f, 1.0f); DirectX::XMMATRIX Identity = DirectX::XMMatrixIdentity(); - pDevice->SetTransform(D3DTS_PROJECTION, &Ortho2D); - pDevice->SetTransform(D3DTS_WORLD, &Identity); - pDevice->SetTransform(D3DTS_VIEW, &Identity); + pDevice->SetTransform(3 /*D3DTS_PROJECTION*/, &Ortho2D); + pDevice->SetTransform(256 /*D3DTS_WORLD*/, &Identity); + pDevice->SetTransform(2 /*D3DTS_VIEW*/, &Identity); } } diff --git a/lib/vis_milkdrop/utility.cpp b/lib/vis_milkdrop/utility.cpp index ba1f79d..ed47efa 100644 --- a/lib/vis_milkdrop/utility.cpp +++ b/lib/vis_milkdrop/utility.cpp @@ -1003,7 +1003,7 @@ double GetPentiumTimeAsDouble(unsigned __int64 frequency) sprintf(buf2, "%shwnd=%08x, msg=%s, w=%08x, l=%08x\n", szStartText, hwnd, buf, wParam, lParam); else sprintf(buf2, "%shwnd=%08x, msg=unknown/0x%08x, w=%08x, l=%08x\n", szStartText, hwnd, msg, wParam, lParam); - OutputDebugString(buf2); + OutputDebugStringA(buf2); #endif } #endif