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

Use point more in graphics code #32732

Merged
merged 7 commits into from
Jul 29, 2019

Conversation

jbytheway
Copy link
Contributor

Summary

SUMMARY: None

Purpose of change

My ongoing effort to make more use of point and related classes to improve type safety and code clarity.

Describe the solution

Rewrite a bunch of GUI code to make more use of point.

Removed cata_tiles::last_pos_x,y entirely because they were unused.

No change to behaviour intended.

Additional context

More similar PRs are incoming. This was inspired by #32017 but this PR is not specifically in support of it.

@jbytheway jbytheway changed the title Point in graphics code Use point more in graphics code Jul 29, 2019
src/cata_tiles.h Outdated Show resolved Hide resolved
src/input.h Outdated Show resolved Hide resolved
src/input.h Outdated Show resolved Hide resolved
src/input.cpp Outdated Show resolved Hide resolved
@kevingranade kevingranade merged commit 49c3d5e into CleverRaven:master Jul 29, 2019
@jbytheway jbytheway deleted the point_in_graphics_code branch July 30, 2019 14:34
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

Successfully merging this pull request may close these issues.

3 participants