GLOBAL(void) jpeg_mem_term (j_common_ptr cinfo) { GUI_USE_PARA(cinfo); }
/********************************************************************* * * GUI_HOOK_Remove */ void GUI_HOOK_Remove(GUI_HOOK** ppFirstHook, GUI_HOOK* pHook) { GUI_USE_PARA(pHook); *ppFirstHook = NULL; }
void GUI_X_Log (const char *s) { GUI_USE_PARA(s); }
/********************************************************************* * * LCD_L0_DrawVLine */ void LCD_L0_DrawVLine(int x, int y0, int y1) { GUI_USE_PARA(x); GUI_USE_PARA(y0); GUI_USE_PARA(y1); }
/********************************************************************* * * GUI_SIF_DeleteFont */ void GUI_SIF_DeleteFont(GUI_FONT * pFont) { GUI_USE_PARA(pFont); }
/********************************************************************* * * LCD_L0_SetPixelIndex */ void LCD_L0_SetPixelIndex(int x, int y, int PixelIndex) { GUI_USE_PARA(x); GUI_USE_PARA(y); GUI_USE_PARA(PixelIndex); }
/********************************************************************* * * LCD_L0_XorPixel */ void LCD_L0_XorPixel(int x, int y) { GUI_USE_PARA(x); GUI_USE_PARA(y); }
/********************************************************************* * * _cbUpdateWindowAndDescs */ static void _cbUpdateWindowAndDescs(WM_HWIN hWin, void* pData) { GUI_USE_PARA(pData); WM_Update(hWin); }
/********************************************************************* * * GUIPROP_GetFontInfo */ void GUIPROP_GetFontInfo(const GUI_FONT GUI_UNI_PTR * pFont, GUI_FONTINFO* pfi) { GUI_USE_PARA(pFont); pfi->Flags = GUI_FONTINFO_FLAG_PROP; }
/********************************************************************* * * _GetPixelIndex */ static unsigned int _GetPixelIndex(int x, int y) { GUI_USE_PARA(x); GUI_USE_PARA(y); return 0; }
/********************************************************************* * * GUI_SIF_IsInFont */ static char _GUI_SIF_IsInFont(const GUI_FONT GUI_UNI_PTR * pFont, U16 c) { const U8 * pCharInfo; GUI_USE_PARA(pFont); pCharInfo = _GetpCharInfo(GUI_Context.pAFont, c); return (pCharInfo) ? 1 : 0; }
/********************************************************************* * * _SetPixelIndex */ static void _SetPixelIndex(int x, int y, int Index) { GUI_USE_PARA(Index); _MarkPixel(x, y); }
void GUIMONO_GetFontInfo(void* pFont, GUI_FONTINFO* pfi) { GUI_USE_PARA(pFont); pfi->Flags = GUI_FONTINFO_FLAG_MONO; }
int GUIMONO_GetCharDistX(U16P c) { const GUI_FONT_MONO* pMono = GUI_Context.pAFont->p.pMono; GUI_USE_PARA(c); return pMono->XDist; }
/********************************************************************* * * LCD_L0_SetOrg */ void LCD_L0_SetOrg(int x, int y) { GUI_USE_PARA(x); GUI_USE_PARA(y); }
/********************************************************************* * * _GetCharSize * * Purpose: * Return the number of bytes of the current character. */ static int _GetCharSize(const char GUI_UNI_PTR * s) { GUI_USE_PARA(s); return 1; }
/********************************************************************* * * LCD_L0_SetLUTEntry */ void LCD_L0_SetLUTEntry(U8 Pos, LCD_COLOR Color) { GUI_USE_PARA(Pos); GUI_USE_PARA(Color); }
/********************************************************************* * * _CalcSizeOfChar * * Purpose: * Return the number of bytes needed for the given character. */ static int _CalcSizeOfChar(U16 Char) { GUI_USE_PARA(Char); return 1; }
/********************************************************************* * * LCD_L0_GetPixelIndex */ unsigned int LCD_L0_GetPixelIndex(int x, int y) { GUI_USE_PARA(x); GUI_USE_PARA(y); return 0; }
/********************************************************************* * * _WIDGET_EFFECT_None_DrawUpRect */ static void _WIDGET_EFFECT_None_DrawUpRect(const GUI_RECT* pRect) { GUI_USE_PARA(pRect); }
/********************************************************************* * * LCD_L0_DrawHLine */ void LCD_L0_DrawHLine(int x0, int y, int x1) { GUI_USE_PARA(x0); GUI_USE_PARA(y); GUI_USE_PARA(x1); }
/********************************************************************* * * _cbInvalidateOne */ static void _cbInvalidateOne(WM_HWIN hWin, void * p) { GUI_USE_PARA(p); WM_InvalidateWindow(hWin); }
/********************************************************************* * * LCD_L0_FillRect */ void LCD_L0_FillRect(int x0, int y0, int x1, int y1) { GUI_USE_PARA(x0); GUI_USE_PARA(y0); GUI_USE_PARA(x1); GUI_USE_PARA(y1); }
/********************************************************************* * * GUI_VNC_X_StartServer */ int GUI_VNC_X_StartServer(int LayerIndex, int ServerIndex) { GUI_USE_PARA(LayerIndex); GUI_USE_PARA(ServerIndex); return 0; }
static void _DrawArc(int x0, int y0, int rx, int ry, int Angle0, int Angle1, int xMul, int yMul) { float afx[4]; float afy[4]; float ri = rx-(GUI_Context.PenSize+1.5)/2; float ro = rx+(GUI_Context.PenSize+1.5)/2; float fAngle0 = Angle0*3.1415926/180; float fAngle1 = Angle1*3.1415926/180; float sin0 = sin(fAngle0); float sin1 = sin(fAngle1); float cos0 = cos(fAngle0); float cos1 = cos(fAngle1); U32 ri2 = ri*ri; U32 ro2 = ro*ro; int y, yMax, yMin; afy[0] = ri*sin0; afy[1] = ro*sin0; afy[2] = ri*sin1; afy[3] = ro*sin1; afx[0] = ri*cos0; afx[1] = ro*cos0; afx[2] = ri*cos1; afx[3] = ro*cos1; yMin = ceil(afy[0]); yMax = floor(afy[3]); /* Use Clipping rect to reduce calculation (if possible) */ if (GUI_Context.pClipRect_HL) { if (yMul ==1) { if (yMax > (GUI_Context.pClipRect_HL->y1 -y0)) yMax = (GUI_Context.pClipRect_HL->y1 -y0); if (yMin < (GUI_Context.pClipRect_HL->y0 -y0)) yMin = (GUI_Context.pClipRect_HL->y0 -y0); } if (yMul == -1) { if (yMin > (GUI_Context.pClipRect_HL->y1 -y0)) yMin = (GUI_Context.pClipRect_HL->y1 -y0); if (yMax < (GUI_Context.pClipRect_HL->y0 -y0)) yMax = (GUI_Context.pClipRect_HL->y0 -y0); } } /* Start drawing lines ... */ { int xMinDisp, xMaxDisp, xMin=0,xMax=0; for (y=yMax; y>=yMin; y--) { CalcX(&xMin, y, ri2); CalcX(&xMax, y, ro2); if ((float)y< afy[1]) { xMaxDisp = CalcInterSectLin(y,afy[0], afy[1], afx[0], afx[1]); } else { xMaxDisp = xMax; } if ((float)y > afy[2]) { xMinDisp = CalcInterSectLin(y,afy[2], afy[3], afx[2], afx[3]); } else { xMinDisp = xMin; } if (xMul>0) LCD_HL_DrawHLine(xMinDisp+x0, yMul*y+y0, xMaxDisp+x0); else LCD_HL_DrawHLine(-xMaxDisp+x0, yMul*y+y0, -xMinDisp+x0); } } #if 0 /* Test code */ { int i; GUI_SetColor( GUI_WHITE ); for (i=0; i<4; i++) LCD_HL_DrawPixel(afx[i]+x0, afy[i]+y0); } #endif GUI_USE_PARA(ry); }
/********************************************************************* * * GUIPROPAA_GetFontInfo */ void GUIPROPAA_GetFontInfo(const GUI_FONT * pFont, GUI_FONTINFO* pfi) { GUI_USE_PARA(pFont); pfi->Flags = GUI_FONTINFO_FLAG_PROP | GUI_FONTINFO_FLAG_AA; }
void GUI_X_ErrorOut(const char *s) { GUI_USE_PARA(s); }
void GUI_MEMDEV_DeleteAuto(GUI_AUTODEV * pAutoDev) { GUI_USE_PARA(pAutoDev); }
void GUI_X_Warn (const char *s) { GUI_USE_PARA(s); }
GLOBAL(long) jpeg_mem_init (j_common_ptr cinfo) { GUI_USE_PARA(cinfo); return 0; }