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

OpenXcom scrolling issue #340

Open
th555 opened this issue Jul 1, 2024 · 0 comments
Open

OpenXcom scrolling issue #340

th555 opened this issue Jul 1, 2024 · 0 comments

Comments

@th555
Copy link

th555 commented Jul 1, 2024

Running the latest OpenXcom built from source, and sdl12-compat 1.2.68, on manjaro, I again encountered this scrolling issue. Quoting from there:

I've found the culprit code to be here:

https://github.com/OpenXcom/OpenXcom/blob/master/src/Geoscape/Globe.cpp#L1609

The calls to filter out mouse motion events doesn't seem to work and the SDL_WarpMouse call adds another motion event to the queue which just floods the queue continuously, which is causing the freeze. Commenting out the SDL_WarpMouse line fixes the issue of course, but once the cursor hits the edges of the window, it stops.

Edit: so reading a few lines further, the actual issue might be with SDL_EventState(SDL_MOUSEMOTION, SDL_IGNORE), and not SDL_WarpMouse itself.

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

1 participant