mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-25 16:06:31 +00:00
Fix WindowFromPoint P/Invoke
This commit is contained in:
@@ -51,7 +51,9 @@ namespace renderdocui.Windows
|
||||
short x = (short)((pos >> 0) & 0xffff);
|
||||
short y = (short)((pos >> 16) & 0xffff);
|
||||
|
||||
IntPtr wnd = Win32PInvoke.WindowFromPoint((int)x, (int)y);
|
||||
Win32PInvoke.POINT pt = new Win32PInvoke.POINT((int)x, (int)y);
|
||||
|
||||
IntPtr wnd = Win32PInvoke.WindowFromPoint(pt);
|
||||
|
||||
if (wnd != IntPtr.Zero && wnd != m.HWnd && Control.FromHandle(wnd) != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user