X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;ds=sidebyside;f=apps%2Fd3d9%2Ftri.cpp;h=6cf6284a22d6d551f6270556b315e0beb5c1c144;hb=HEAD;hp=816673497027b8c9421642139caa8d8047f930d5;hpb=799a2cd3f002cb517b0c461ee0cb9feb31dc5761;p=apitrace-tests diff --git a/apps/d3d9/tri.cpp b/apps/d3d9/tri.cpp index 8166734..6cf6284 100644 --- a/apps/d3d9/tri.cpp +++ b/apps/d3d9/tri.cpp @@ -34,11 +34,13 @@ static IDirect3DDevice9 * g_pDevice = NULL; static D3DPRESENT_PARAMETERS g_PresentationParameters; -int WINAPI -WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR pCmdLine, int nCmdShow) +int +main(int argc, char *argv[]) { HRESULT hr; + HINSTANCE hInstance = GetModuleHandle(NULL); + WNDCLASSEX wc = { sizeof(WNDCLASSEX), CS_CLASSDC, @@ -106,7 +108,7 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR pCmdLine, int nCmdSh g_PresentationParameters.BackBufferHeight = WindowHeight; } g_PresentationParameters.BackBufferCount = 1; - g_PresentationParameters.SwapEffect = D3DSWAPEFFECT_FLIP; + g_PresentationParameters.SwapEffect = D3DSWAPEFFECT_DISCARD; if (!Windowed) { g_PresentationParameters.BackBufferFormat = D3DFMT_X8R8G8B8; } else {