-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version 1.2.12: fix d3d9 hook alt-tab black screen (#29), remove some…
… useless code, add wndproc hook into imgui example
- Loading branch information
Showing
9 changed files
with
62 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,6 @@ | |
- [x] D3D11 | ||
- [ ] D3D12 | ||
- [ ] OpenGL | ||
- [ ] Vulcan | ||
- [ ] Vulkan | ||
|
||
Author(s): [Rebzzel](https://github.com/Rebzzel) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#include "../../../kiero.h" | ||
|
||
#include "win32_impl.h" | ||
#include <Windows.h> | ||
|
||
#include "../imgui/imgui.h" | ||
#include "../imgui/examples/imgui_impl_win32.h" | ||
|
||
static WNDPROC oWndProc = NULL; | ||
|
||
extern IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); | ||
|
||
LRESULT CALLBACK hkWindowProc( | ||
_In_ HWND hwnd, | ||
_In_ UINT uMsg, | ||
_In_ WPARAM wParam, | ||
_In_ LPARAM lParam | ||
) | ||
{ | ||
if (ImGui_ImplWin32_WndProcHandler(hwnd, uMsg, wParam, lParam) > 0) | ||
return 1L; | ||
return ::CallWindowProcA(oWndProc, hwnd, uMsg, wParam, lParam); | ||
} | ||
|
||
void impl::win32::init(void* hwnd) | ||
{ | ||
oWndProc = (WNDPROC)::SetWindowLongPtr((HWND)hwnd, GWLP_WNDPROC, (LONG)hkWindowProc); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#ifndef __WIN32_IMPL_H__ | ||
#define __WIN32_IMPL_H__ | ||
|
||
#include "shared.h" | ||
|
||
namespace impl | ||
{ | ||
namespace win32 | ||
{ | ||
void init(void* hwnd); | ||
} | ||
} | ||
|
||
#endif // __WIN32_IMPL_H__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters