mirror of
https://gitee.com/Polarix/simplegui.git
synced 2025-06-18 14:07:53 +00:00
Compare commits
No commits in common. "cf7eaf257fef39a47fc452c688291d5248991175" and "e8bc8f90e639f68d07ecb1e67028dd10bc6d521d" have entirely different histories.
cf7eaf257f
...
e8bc8f90e6
@ -168,7 +168,6 @@ void SGUI_ItemsBase_Repaint(SGUI_SCR_DEV* pstDeviceIF, SGUI_ITEMS_BASE* pstObj)
|
||||
SGUI_ITEMS_ITEM* pstPaintingItem;
|
||||
SGUI_CSZSTR cszItemText;
|
||||
SGUI_INT iItemPosY;
|
||||
void* pVisiEndItem;
|
||||
|
||||
/*----------------------------------*/
|
||||
/* Process */
|
||||
@ -220,8 +219,7 @@ void SGUI_ItemsBase_Repaint(SGUI_SCR_DEV* pstDeviceIF, SGUI_ITEMS_BASE* pstObj)
|
||||
/* Paint all visible item. */
|
||||
pstPaintingItem = ITEMS_VISIBLE_START_ITEM(pstObj);
|
||||
iItemPosY = pstObj->stLayout.iY + pstObj->iItemPaintOffset;
|
||||
pVisiEndItem = ITEMS_VISIBLE_END_ITEM(pstObj) ? ITEMS_VISIBLE_END_ITEM(pstObj)->pstNext : NULL;
|
||||
while((pstPaintingItem != pVisiEndItem) && (NULL != pstPaintingItem))
|
||||
while((pstPaintingItem != ITEMS_VISIBLE_END_ITEM(pstObj)->pstNext) && (NULL != pstPaintingItem))
|
||||
{
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user