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

Add integer scaling feature #34

Merged
merged 2 commits into from
Sep 28, 2024

Conversation

SadPencil
Copy link
Contributor

@SadPencil SadPencil commented Sep 10, 2024

Demo: CnCNet/xna-cncnet-client#557

This PR adds an integer scaling mode. If set, only scales the rendered screen by integer scaling factors. Unfilled space is filled with black.

Copy link
Owner

@Rampastring Rampastring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are more callsites for RecalculateScaling. This PR only adds the integerScale parameter to one of them.

I think it'd be better to add public bool IntegerScalingOnly { get; set; } as a property instead of as a parameter for SetRenderResolution, and use the value of that property in RecalculateScaling.

@Rampastring Rampastring merged commit 7341533 into Rampastring:master Sep 28, 2024
@SadPencil SadPencil deleted the feat-integer-scale branch September 28, 2024 11:51
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.

2 participants