simplegui/VirtualSDK/Common/src/Common.cpp
Polarix 9956f92f0d 2019-02-15:
更新实时曲线控件,可以非全屏显示,取消标题和数值显示,需要的可以参照例程自己实现。
更新屏幕驱动对象,屏幕的尺寸参数等不再使用全局宏定义。
2019-02-15 21:58:23 +08:00

32 lines
1.2 KiB
C++

/*************************************************************************/
/** Copyright. **/
/** FileName: Common.cpp **/
/** Author: Polarix **/
/** Description: Common data and functions define. **/
/*************************************************************************/
//=======================================================================//
//= Include files. =//
//=======================================================================//
#include "Common.h"
PixelPanelParameter g_stParameters;
void SetDefaultParameterData(PixelPanelParameter* pstParameter)
{
if(NULL != pstParameter)
{
// Appearance
pstParameter->HorizontalPixelNumber = PARAM_DEFAULT_PIXEL_NUM_H;
pstParameter->VerticalPixelNumber = PARAM_DEFAULT_PIXEL_NUM_V;
pstParameter->PixelUnitWidth = PARAM_DEFAULT_PIXEL_WIDTH;
pstParameter->PixelUnitHeight = PARAM_DEFAULT_PIXEL_HEIGHT;
pstParameter->EnableGrid = PARAM_DEFAULT_GRID_ENABLE;
pstParameter->BorderWidth = PARAM_DEFAULT_PANEL_BORDER_WIDTH;
// ScreenColor
pstParameter->PanelColor = LCD_COLOR_OBJ_BKG;
pstParameter->PixelColor = LCD_COLOR_OBJ_PIX;
pstParameter->GridColor = LCD_COLOR_OBJ_GRID;
}
}