diff options
| author | Martin Storsjö <martin@martin.st> | 2024-11-28 15:13:15 +0200 |
|---|---|---|
| committer | Martin Storsjö <martin@martin.st> | 2024-11-28 18:22:13 +0200 |
| commit | fbd8067a89ba7abf2a6d063a98edda9b19c9c749 (patch) | |
| tree | 51eee3cd815218cca95b4573c95f869d7f33eea2 /examples/opengl/cube/mainwidget.cpp | |
| parent | aec007d5169b24eb7ad748e5466eba96a0fce33b (diff) | |
Windows: Add a missing WINAPI for a callback function
This fixes compilation for i686 after
5feefd30734cd12753956819fc7c152be07c24cd, fixing compilation errors
like these:
qtbase/src/plugins/platforms/windows/qwindowswindow.cpp:901:69: error: no matching member function for call to 'registerWindowClass'
901 | const QString windowTitlebarName = QWindowsContext::instance()->registerWindowClass(QStringLiteral("_q_titlebar"), WndProcTitleBar, CS_VREDRAW|CS_HREDRAW, nullptr, false);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
qtbase/src/plugins/platforms/windows/qwindowscontext.h:77:13: note: candidate function not viable: no known conversion from 'LRESULT (HWND, UINT, WPARAM, LPARAM)' (aka 'long (HWND__ *, unsigned int, unsigned int, long)') to 'WNDPROC' (aka 'long (*)(HWND__ *, unsigned int, unsigned int, long) __attribute__((stdcall))') for 2nd argument
77 | QString registerWindowClass(QString cname, WNDPROC proc,
| ^ ~~~~~~~~~~~~
Change-Id: I9eb2d3dc0626b8606d4b49cf82fba34d6a4b2942
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'examples/opengl/cube/mainwidget.cpp')
0 files changed, 0 insertions, 0 deletions
