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

Refactored PNG loading and SFont handling #78

Merged
merged 1 commit into from
Sep 14, 2024
Merged

Refactored PNG loading and SFont handling #78

merged 1 commit into from
Sep 14, 2024

Conversation

dogo
Copy link
Owner

@dogo dogo commented Sep 14, 2024

  • Improved memory management and error handling in _loadFromPNG, oslLoadSFontFile, oslDeleteSFont, oslGetSFontTextWidth, and oslSFontDrawText.
  • Added proper resource cleanup in case of failure.
  • Used const correctness where appropriate.
  • Simplified code structure and improved readability.
  • Added bounds checking and null checks for safer code.

- Improved memory management and error handling in _loadFromPNG, oslLoadSFontFile, oslDeleteSFont, oslGetSFontTextWidth, and oslSFontDrawText.
- Added proper resource cleanup in case of failure.
- Used const correctness where appropriate.
- Simplified code structure and improved readability.
- Added bounds checking and null checks for safer code.
@dogo dogo merged commit 07866cc into master Sep 14, 2024
6 checks passed
@dogo dogo deleted the refactor/sfont branch September 14, 2024 14:14
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.

1 participant