wii_anal_lcd.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef WII_ANAL_LCD_H_
  2. #define WII_ANAL_LCD_H_
  3. //----------------------------------------------------------------------------- ----------------------------------------
  4. // A couple of monospaced hex fonts
  5. //
  6. #include "gfx/images.h"
  7. extern const image_t* img_6x8[];
  8. extern const image_t* img_5x7[];
  9. //============================================================================= ========================================
  10. // macros to draw only two sides of a box
  11. // these are used for drawing the wires on the WAIT screen
  12. //
  13. #define BOX_TL(x1,y1,x2,y2) do { \
  14. canvas_draw_frame(canvas, x1,y1, x2-x1+1,2); \
  15. canvas_draw_frame(canvas, x1,y1+2, 2,y2-y1+1-2); \
  16. }while(0)
  17. #define BOX_BL(x1,y1,x2,y2) do { \
  18. canvas_draw_frame(canvas, x1,y2-1, x2-x1+1,2); \
  19. canvas_draw_frame(canvas, x1,y1, 2,y2-y1+1-2); \
  20. }while(0)
  21. //============================================================================= ========================================
  22. // Function prototypes
  23. //
  24. void patBacklight (state_t* state) ;
  25. void showHex ( Canvas* const canvas, uint8_t x, uint8_t y,
  26. const uint32_t val, const uint8_t cnt, const int b ) ;
  27. void showPeakHold (state_t* const state, Canvas* const canvas, const int hold) ;
  28. void showJoy ( Canvas* const canvas, const uint8_t x, const uint8_t y, // x,y is the CENTRE of the Joystick
  29. const uint8_t xMin, const uint8_t xMid, const uint8_t xMax,
  30. const uint8_t yMin, const uint8_t yMid, const uint8_t yMax,
  31. const uint8_t xPos, const uint8_t yPos, const uint8_t bits ) ;
  32. #endif //WII_ANAL_LCD_H_