issues
search
dogo
/
oslib
OldSchool Library (OSLib), a 2D graphics library for the PSP.
http://dogo.github.io/oslib/
GNU General Public License v2.0
45
stars
11
forks
source link
Refactored PNG loading and SFont handling
#78
Closed
dogo
closed
1 month ago
dogo
commented
1 month ago
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.