void LCD_DrawPixel(int x, int y) { RETURN_IF_Y_OUT(); RETURN_IF_X_OUT(); if (GUI_Context.DrawMode & LCD_DRAWMODE_XOR) { LCDDEV_L0_XorPixel(x, y); } else { LCDDEV_L0_SetPixelIndex(x, y, LCD_COLORINDEX); } }
/********************************************************************* * * LCD_DrawVLine */ void LCD_DrawVLine(int x, int y0, int y1) { /* Perform clipping and check if there is something to do */ RETURN_IF_X_OUT(); CLIP_Y(); if (y1 < y0) { return; } /* Call driver to draw */ LCDDEV_L0_DrawVLine(x, y0, y1); }
/********************************************************************* * * LCD_SetPixelIndex * * Purpose: * Writes 1 pixel into the display. */ void LCD_SetPixelIndex(int x, int y, int ColorIndex) { RETURN_IF_X_OUT(); RETURN_IF_Y_OUT(); LCDDEV_L0_SetPixelIndex(x, y, ColorIndex); }