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

[OpenGL] Dragging train cursor disappears when close to left / top border #8763

Closed
TrueBrain opened this issue Feb 28, 2021 · 0 comments
Closed

Comments

@TrueBrain
Copy link
Member

Version of OpenTTD

4fd2eec

Expected result

Still showing a cursor when close to a border while dragging a train.

Actual result

When you drag a train close to a border, it disappears.

For the normal cursor, x=0,y=0 is the top/left part of the cursor. When dragging trains, it is not (the cursor is in the middle of the sprite). So the game tries the draw the mouse from x=-5,y=10, for example, which in result means it is not drawn at all for OpenGL.

Steps to reproduce

  • Build a train
  • Drag it to the edges of the screen
  • On the top and/or left border, it disappears when getting close
michicc added a commit to michicc/OpenTTD that referenced this issue Feb 28, 2021
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