Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The mouse position is not displayed correctly in ImWindowSokolOGL project #34

Open
zhouxs1023 opened this issue May 3, 2020 · 5 comments

Comments

@zhouxs1023
Copy link

The mouse position is not the same as the acquisition position as below:

123

@thennequin
Copy link
Owner

I can't reproduce your issue.

Can you try to change the value of the second parameter of ImwWindowManagerSokol constructor in main.cpp to false, to disable custom window titlebar.

ImwWindowManagerSokol oMgr(&oSokolDesc, true); //Before
ImwWindowManagerSokol oMgr(&oSokolDesc, false); //After

@zhouxs1023
Copy link
Author

Thank your reply!
change true to false, the mouse position can be acquisition normally

@thennequin
Copy link
Owner

Do you have this problem only with the sokol OpenGL version or it's also present in the DX11 version ?

@zhouxs1023
Copy link
Author

Dx11, sokologl and sokoldx11 provide self drawing titlebar.
At present, only ImWindowSokolOGL projects has this problem. ImWindowDX11 and ImWindowSokolDX11 do not have this problem, which may be caused by my computer's poor support for GL3
In addition, whether ImWindowGLFW and ImWindowOGL projects can also support self drawing title blocks

@thennequin
Copy link
Owner

What brand of GPU do you have?
I knew AMD had issue with the borderless mode of EasyWindow and with MSAA under DX11, so there maybe other problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants