void LCD_DrawHLine (int x0, int y, int x1) { /* Perform clipping and check if there is something to do */ RETURN_IF_Y_OUT(); CLIP_X(); if (x1<x0) return; /* Call driver to draw */ LCDDEV_L0_DrawHLine(x0, y, x1); }
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_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); }