sumotoy / RA8875

A library for RAiO RA8875 display driver for Teensy3.x or LC/Arduino's/Energia/Spark
GNU General Public License v3.0
79 stars 55 forks source link

setFontScale bug #75

Closed gmartau closed 8 years ago

gmartau commented 8 years ago

The function sends to chip display wrong values (x for vertical and y for horizontal instead of vice versa).

sumotoy commented 8 years ago

are u using b10 or b11?

gmartau commented 8 years ago

I'm using 0.70b11p5. I used a previous version that had parameters named vertical, horizontal (I noticed the change). It was OK and the getFontWidth and getFontHeight returned correct values. In the latest version these return reversed values. If text is scaled on Y only, the getFontWidth return scaled value and the getFontHeight return the non scaled value not as expected. My local fix was to send to display switched values and the getFontWidth and getFontHeight remain in sync with the redered text.

sumotoy commented 8 years ago

Ok, it's my stupid error definetively, fixed in p6 (incoming in a couple of minutes) Let me know if works ok now. Thanks to point me this!