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

MemoryViewWidget: Fix some characters being truncated #12127

Merged
merged 1 commit into from Aug 26, 2023

Conversation

sepalani
Copy link
Contributor

This PR fixes some ASCII characters not being drawn properly on the memory view.

Without this PR, underscores aren't drawn on my system. Removing the -1 from (m_font_vspace - 1) fixes the underscore issue. However, it was drawn under the table cell's border and couldn't be seen unless I changed the address and move the cursor elsewhere. Adding 1~2 (pixels?) allows the underscore character to be drawn right above the cell border but without spacing between it. That's why I added an extra 2 (i.e. 4 in total) to have at least a bit of spacing between the underscore and the cell's (dotted) border.

Before this PR:
image

This PR:
image

I'm open to suggestions if you've better ways to address this.

Ready to be reviewed & merged.

@AdmiralCurtiss
Copy link
Contributor

I guess this is fine.

@AdmiralCurtiss AdmiralCurtiss merged commit d8e3543 into dolphin-emu:master Aug 26, 2023
11 checks passed
@sepalani sepalani deleted the ascii_ branch September 10, 2023 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants