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 in main_menu.h and output.h #33417

Merged
merged 5 commits into from
Aug 21, 2019

Conversation

jbytheway
Copy link
Contributor

@jbytheway jbytheway commented Aug 21, 2019

Summary

SUMMARY: None

Purpose of change

My ongoing campaign to use point in more places for type safety and code clarity.

Describe the solution

Update main_menu.h and output.h to use point in various places rather than separate int coordinates.

Describe alternatives you've considered

I'm not sure the refactoring to draw_scrollbar is the best choice, but it's a deprecated function anyway, so I'm not losing too much sleep over it.

Additional context

Inspired by #32017.

@ZhilkinSerg ZhilkinSerg added [C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style labels Aug 21, 2019
@ZhilkinSerg ZhilkinSerg merged commit 0235134 into CleverRaven:master Aug 21, 2019
@jbytheway jbytheway deleted the point_in_main_menu_output branch August 21, 2019 08:46
misterprimus pushed a commit to misterprimus/Cataclysm-DDA that referenced this pull request Sep 21, 2019
* Convert main_menu code to use points

* Automated refactoring

* Add overloads for output.h functions

* Automated refactoring of callers

* Port output function implementations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants