Skip to content

Refactored PNG loading and SFont handling - #78

Merged
dogo merged 1 commit into
masterfrom
refactor/sfont
Sep 14, 2024
Merged

Refactored PNG loading and SFont handling#78
dogo merged 1 commit into
masterfrom
refactor/sfont

Conversation

@dogo

@dogo dogo commented Sep 14, 2024

Copy link
Copy Markdown
Owner
  • 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
@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