2019-01-09 12:33:11 +00:00
|
|
|
/*************************************************************************/
|
|
|
|
/** Copyright. **/
|
|
|
|
/** FileName: Common.cpp **/
|
|
|
|
/** Author: Polarix **/
|
|
|
|
/** Description: Common data and functions define. **/
|
|
|
|
/*************************************************************************/
|
|
|
|
//=======================================================================//
|
|
|
|
//= Include files. =//
|
|
|
|
//=======================================================================//
|
|
|
|
#include "Common.h"
|
|
|
|
|
|
|
|
PixelPanelParameter g_stParameters;
|
|
|
|
|
|
|
|
|
2020-06-03 16:11:38 +00:00
|
|
|
void SetLCDPanelParameter(PixelPanelParameter* pstParameter)
|
2019-01-09 12:33:11 +00:00
|
|
|
{
|
|
|
|
if(NULL != pstParameter)
|
|
|
|
{
|
|
|
|
// Appearance
|
|
|
|
pstParameter->HorizontalPixelNumber = PARAM_DEFAULT_PIXEL_NUM_H;
|
|
|
|
pstParameter->VerticalPixelNumber = PARAM_DEFAULT_PIXEL_NUM_V;
|
2019-01-26 15:12:10 +00:00
|
|
|
pstParameter->PixelUnitWidth = PARAM_DEFAULT_PIXEL_WIDTH;
|
|
|
|
pstParameter->PixelUnitHeight = PARAM_DEFAULT_PIXEL_HEIGHT;
|
2019-02-15 13:58:23 +00:00
|
|
|
pstParameter->EnableGrid = PARAM_DEFAULT_GRID_ENABLE;
|
|
|
|
pstParameter->BorderWidth = PARAM_DEFAULT_PANEL_BORDER_WIDTH;
|
2019-01-09 12:33:11 +00:00
|
|
|
// ScreenColor
|
|
|
|
pstParameter->PanelColor = LCD_COLOR_OBJ_BKG;
|
|
|
|
pstParameter->PixelColor = LCD_COLOR_OBJ_PIX;
|
|
|
|
pstParameter->GridColor = LCD_COLOR_OBJ_GRID;
|
|
|
|
}
|
|
|
|
}
|