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
Improve shape drawing functions for consistency and correctness
#64
Closed
dogo
closed
1 month ago
dogo
commented
1 month ago
Removed inconsistent coordinate adjustments in
oslDrawRect
for more accurate rendering.
Fixed bitwise operation in
oslBlendColors
for correct color blending.
Optimized
oslBlendColors
by pre-blending colors to reduce redundant computations.
Simplified texture toggling with a helper function to eliminate repetition.
Added coordinate validation in
oslDrawRect
to handle cases where
x1 < x0
or
y1 < y0
.
oslDrawRect
for more accurate rendering.oslBlendColors
for correct color blending.oslBlendColors
by pre-blending colors to reduce redundant computations.oslDrawRect
to handle cases wherex1 < x0
ory1 < y0
.