Skip to content

Commit

Permalink
Refactored PNG loading and SFont handling:
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
dogo committed Sep 14, 2024
1 parent 76dfd81 commit 07866cc
Showing 1 changed file with 254 additions and 205 deletions.
Loading

0 comments on commit 07866cc

Please sign in to comment.