CE-Programming / libraries

Common libraries for use on the TI84+CE/TI83PCE calculators
BSD 2-Clause "Simplified" License
145 stars 11 forks source link

Filled Rectangles w/ Negative Width/Height #8

Closed spenceboy98 closed 8 years ago

spenceboy98 commented 8 years ago

I use filled rectangles for my Fuel bar and Health bar in Catylizm. Whenever the height gets to <= 0, it does this: rectangle bug It looks worse on the emu and on the real calc. It flickers and doesn't look very good.

mateoconlechuga commented 8 years ago

But... How can you have a negative height? That's not a part of the library system. I guess I could add checks in for negativity :)

mateoconlechuga commented 8 years ago

Note: Widths must be greater than or equal to 2. This also needs to be fixed.

mateoconlechuga commented 8 years ago

Negative and 0 widths are now properly handled. Heights of 0 and down to -14 are also handled. Please note that the prototype technically doesn't allow negatives though :)

jacobly0 commented 8 years ago

Removed handling of negative heights and widths (to fix #11). If you need negative widths use a clipped routine (which takes signed arguments) or check for that case yourself.