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

feat: add textwrap, multiline show_text #3

Merged
merged 5 commits into from
Jul 6, 2024
Merged

Conversation

JeanElsner
Copy link
Member

This adds automatic wrapping of text for show_text and render_text, taking screen and font size into consideration. Also added mutex to synchronize rendering and increased fps of main loop to avoid graphics artifacts.

This fixes a timing issue where a call to flip the pygame screen may
happen even after pygame was quit preventing a graceful exit.
This adds automatic wrapping of text for show_text and render_text,
taking screen and font size into consideration. Also added mutex
to synchronize rendering and increased fps of main loop to avoid
graphics artifacts.
Copy link

codecov bot commented Jul 6, 2024

Codecov Report

Attention: Patch coverage is 70.73171% with 12 lines in your changes missing coverage. Please review.

Project coverage is 71.06%. Comparing base (2a5c1ba) to head (327134d).

Files Patch % Lines
src/garmi_gui/control.py 0.00% 8 Missing ⚠️
src/garmi_gui/gui.py 87.87% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main       #3      +/-   ##
==========================================
- Coverage   71.35%   71.06%   -0.30%     
==========================================
  Files           3        3              
  Lines         206      235      +29     
==========================================
+ Hits          147      167      +20     
- Misses         59       68       +9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@JeanElsner JeanElsner merged commit dc448da into main Jul 6, 2024
7 of 9 checks passed
@JeanElsner JeanElsner deleted the jean/feat/textwrap branch July 6, 2024 16:24
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.

None yet

1 participant