mirror of
https://gitee.com/Polarix/simplegui.git
synced 2025-06-18 05:57:53 +00:00
Compare commits
4 Commits
77ef661fcf
...
03f9dfeee7
Author | SHA1 | Date | |
---|---|---|---|
![]() |
03f9dfeee7 | ||
![]() |
cf7eaf257f | ||
![]() |
4335642b31 | ||
![]() |
8c393854a7 |
@ -168,6 +168,7 @@ void SGUI_ItemsBase_Repaint(SGUI_SCR_DEV* pstDeviceIF, SGUI_ITEMS_BASE* pstObj)
|
|||||||
SGUI_ITEMS_ITEM* pstPaintingItem;
|
SGUI_ITEMS_ITEM* pstPaintingItem;
|
||||||
SGUI_CSZSTR cszItemText;
|
SGUI_CSZSTR cszItemText;
|
||||||
SGUI_INT iItemPosY;
|
SGUI_INT iItemPosY;
|
||||||
|
void* pVisiEndItem;
|
||||||
|
|
||||||
/*----------------------------------*/
|
/*----------------------------------*/
|
||||||
/* Process */
|
/* Process */
|
||||||
@ -219,7 +220,8 @@ void SGUI_ItemsBase_Repaint(SGUI_SCR_DEV* pstDeviceIF, SGUI_ITEMS_BASE* pstObj)
|
|||||||
/* Paint all visible item. */
|
/* Paint all visible item. */
|
||||||
pstPaintingItem = ITEMS_VISIBLE_START_ITEM(pstObj);
|
pstPaintingItem = ITEMS_VISIBLE_START_ITEM(pstObj);
|
||||||
iItemPosY = pstObj->stLayout.iY + pstObj->iItemPaintOffset;
|
iItemPosY = pstObj->stLayout.iY + pstObj->iItemPaintOffset;
|
||||||
while((pstPaintingItem != ITEMS_VISIBLE_END_ITEM(pstObj)->pstNext) && (NULL != pstPaintingItem))
|
pVisiEndItem = ITEMS_VISIBLE_END_ITEM(pstObj) ? ITEMS_VISIBLE_END_ITEM(pstObj)->pstNext : NULL;
|
||||||
|
while((pstPaintingItem != pVisiEndItem) && (NULL != pstPaintingItem))
|
||||||
{
|
{
|
||||||
cszItemText = (NULL == pstPaintingItem->szVariableText) ? (pstPaintingItem->cszLabelText) : (pstPaintingItem->szVariableText);
|
cszItemText = (NULL == pstPaintingItem->szVariableText) ? (pstPaintingItem->cszLabelText) : (pstPaintingItem->szVariableText);
|
||||||
SGUI_Basic_FillRectangleArea(pstDeviceIF, pstObj->stLayout.iX, iItemPosY, pstObj->stLayout.iWidth, ITEM_HEIGHT(pstObj->pstFontRes), pstPaintingItem==ITEMS_SENECT_ITEM(pstObj)?SGUI_COLOR_FRGCLR:SGUI_COLOR_BKGCLR);
|
SGUI_Basic_FillRectangleArea(pstDeviceIF, pstObj->stLayout.iX, iItemPosY, pstObj->stLayout.iWidth, ITEM_HEIGHT(pstObj->pstFontRes), pstPaintingItem==ITEMS_SENECT_ITEM(pstObj)?SGUI_COLOR_FRGCLR:SGUI_COLOR_BKGCLR);
|
||||||
|
@ -128,7 +128,12 @@ HMI_ENGINE_RESULT HMI_StartEngine(const void* pstParameters)
|
|||||||
if(NULL != pstStartScreen->pstActions->Prepare)
|
if(NULL != pstStartScreen->pstActions->Prepare)
|
||||||
{
|
{
|
||||||
eProcessResult = pstStartScreen->pstActions->Prepare(g_pstActivedEngineObject->Interface, pstParameters);
|
eProcessResult = pstStartScreen->pstActions->Prepare(g_pstActivedEngineObject->Interface, pstParameters);
|
||||||
g_pstActivedEngineObject->Interface->fnSyncBuffer();
|
|
||||||
|
if( (NULL != g_pstActivedEngineObject->Interface) &&
|
||||||
|
(NULL != g_pstActivedEngineObject->Interface->fnSyncBuffer))
|
||||||
|
{
|
||||||
|
g_pstActivedEngineObject->Interface->fnSyncBuffer();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user