Skip to content
Permalink
Browse files

Fix getpixel() signature

  • Loading branch information...
matgoebl committed Oct 6, 2019
1 parent f4a1f83 commit 115ced740f775923084ea2759785d6105e9aa161
Showing with 1 addition and 1 deletion.
  1. +1 −1 ESPVGAX.h
@@ -293,7 +293,7 @@ class ESPVGAX {
* y: vertical pixel coordinate. Must be less than ESPVGAX_HEIGHT
* return: 1bit color at <x,y> coordinate
*/
static inline int getpixel(byte x, byte y) {
static inline uint8_t getpixel(int x, int y) {
if (isXOutside(x) || isYOutside(y))
return 0;
uint8_t *p=(uint8_t*)&fbb[y*ESPVGAX_BWIDTH + (x>>3)];

0 comments on commit 115ced7

Please sign in to comment.
You can’t perform that action at this time.