Skip to content

Commit

Permalink
Examples: Win32+OpenGL3: Fixed not calling DefWindowProcW() as with o…
Browse files Browse the repository at this point in the history
…ther Win32 examples. (#6516, #5725, #5961, #5975)

Amend fe0a24f
  • Loading branch information
ocornut committed Jun 13, 2023
1 parent 884e3fd commit 3cc9d20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ Other changes:
- Backends: GLFW: Accept glfwGetTime() not returning a monotonically increasing value.
This seems to happens on some Windows setup when peripherals disconnect, and is likely
to also happen on browser+Emscripten. Matches similar 1.89.4 fix in SDL backend. (#6491)
- Examples: Win32+OpenGL3: Changed DefWindowProc() to DefWindowProcW() to match other examples
and support the example app being compiled without UNICODE. (#6516, #5725, #5961, #5975)


-----------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion examples/example_win32_opengl3/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,5 @@ LRESULT WINAPI WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
::PostQuitMessage(0);
return 0;
}
return ::DefWindowProc(hWnd, msg, wParam, lParam);
return ::DefWindowProcW(hWnd, msg, wParam, lParam);
}

0 comments on commit 3cc9d20

Please sign in to comment.