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

Fix some issues with DStatusBarCore::DrawString #1512

Merged
merged 1 commit into from
Nov 25, 2021

Conversation

Player701
Copy link
Contributor

See here for details.

This fixes two issues with the current scaling implementation of DStatusBarCore::DrawString:

  1. Scale didn't apply to spaces.
  2. Fonts with offsets did not display correctly (glyphs were erroneously shifted to the side).

No idea how I didn't notice issue no. 1 back then, sorry about that.

Note that font offsets don't actually seem to work at this time, and this is not related to scaling at all. I can see in the debugger that the X-coordinates are being calculated correctly for glyphs that have offsets, but they always get drawn as if they didn't have one regardless - not sure if a bug or a missing feature.

@coelckers coelckers merged commit d0697d9 into ZDoom:master Nov 25, 2021
@Player701 Player701 deleted the FixSbarDrawStringScale branch November 25, 2021 15:08
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