diff options
| author | Hunter Kvalevog <hunter@kvog.sh> | 2026-02-15 09:18:38 -0800 |
|---|---|---|
| committer | Hunter Kvalevog <hunter@kvog.sh> | 2026-02-15 09:18:38 -0800 |
| commit | 75b54a555f3dd4075190f7e8bb576100175231ac (patch) | |
| tree | 7723d928d9b9918be7385463c671eff2221292a6 | |
| parent | 443c5aefca26cf0d0b2df8050aae6ce72f8f075d (diff) | |
d3d11-resize-draw: Fix copy-paste
| -rw-r--r-- | d3d11-resize-draw/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/d3d11-resize-draw/main.cpp b/d3d11-resize-draw/main.cpp index f14bf71..bf1680a 100644 --- a/d3d11-resize-draw/main.cpp +++ b/d3d11-resize-draw/main.cpp @@ -364,7 +364,7 @@ int WINAPI WinMain(_In_ HINSTANCE, _In_opt_ HINSTANCE, _In_ LPSTR, _In_ int) // -------------------------------------------------------------------------------- #if ACTIVE_METHOD == 2 -static LRESULT WINAPI Method1_WndProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) +static LRESULT WINAPI Method2_WndProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) { SPEW_WNDPROC(); switch (msg) { @@ -388,7 +388,7 @@ static LRESULT WINAPI Method1_WndProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM int WINAPI WinMain(_In_ HINSTANCE, _In_opt_ HINSTANCE, _In_ LPSTR, _In_ int) { - CreateDemoWindow(CS_CLASSDC | CS_HREDRAW | CS_VREDRAW, Method1_WndProc); + CreateDemoWindow(CS_CLASSDC | CS_HREDRAW | CS_VREDRAW, Method2_WndProc); SetupD3D11(); CreateRenderTarget(); ShowWindow(G.hwnd, SW_SHOW); @@ -413,7 +413,7 @@ int WINAPI WinMain(_In_ HINSTANCE, _In_opt_ HINSTANCE, _In_ LPSTR, _In_ int) // -------------------------------------------------------------------------------- #if ACTIVE_METHOD == 3 -static LRESULT WINAPI Method1_WndProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) +static LRESULT WINAPI Method3_WndProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) { SPEW_WNDPROC(); switch (msg) { @@ -445,7 +445,7 @@ static LRESULT WINAPI Method1_WndProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM int WINAPI WinMain(_In_ HINSTANCE, _In_opt_ HINSTANCE, _In_ LPSTR, _In_ int) { - CreateDemoWindow(CS_CLASSDC, Method1_WndProc); + CreateDemoWindow(CS_CLASSDC, Method3_WndProc); SetupD3D11(); CreateRenderTarget(); ShowWindow(G.hwnd, SW_SHOW); |