text_size.c 362 B

12345678910111213141516171819
  1. #include <math.h>
  2. #include "driver.h"
  3. #include "driverlib.h"
  4. void COM_Text_size(double x, double y)
  5. {
  6. text_size_x = x;
  7. text_size_y = y;
  8. matrix_valid = 0;
  9. }
  10. void COM_Text_rotation(double val)
  11. {
  12. text_rotation = val;
  13. text_sinrot = sin(M_PI * text_rotation / 180.0);
  14. text_cosrot = cos(M_PI * text_rotation / 180.0);
  15. matrix_valid = 0;
  16. }