for (int currentDensity = DENSITY_XHIGH; currentDensity >= DENSITY_LOW; currentDensity--)
{
- SysAssert(densityIndex > DENSITY_NONE && densityIndex < DENSITY_MAX);
+ SysAssert(densityIndex > 0 && densityIndex < DENSITY_MAX);
if (static_cast<int>(__sortedDensity[0]) == currentDensity)
{
result r = pFormatList->Construct();
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, null, r, "[%s] Propagating.", GetErrorMessage(r));
- for (int index = 0; index < _OVERLAY_AGENT_BUFFER_PIXEL_FORMAT_MAX; index++)
+ for (int index = _OVERLAY_AGENT_BUFFER_PIXEL_FORMAT_ARGB8888; index <= _OVERLAY_AGENT_BUFFER_PIXEL_FORMAT_UYVY; index++)
{
- if (__OverlayAgentBufferPixelFormat[index + 1])
- {
- r = pFormatList->Add(true);
- }
+ r = pFormatList->Add(__OverlayAgentBufferPixelFormat[index]);
}
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, null, r, "[%s] Propagating.", GetErrorMessage(r));
r = pFormatList->Construct();
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, null, r, "[%s] Propagating.", GetErrorMessage(r));
- for (int index = 0; index < _OVERLAY_AGENT_BUFFER_PIXEL_FORMAT_MAX; index++)
+ for (int index = _OVERLAY_AGENT_BUFFER_PIXEL_FORMAT_ARGB8888; index <= _OVERLAY_AGENT_BUFFER_PIXEL_FORMAT_UYVY; index++)
{
- if (__overlayPanelPixelFomatList[index + 1])
+ if (__overlayPanelPixelFomatList[index])
{
- r = pFormatList->Add(static_cast<OverlayPanel::BufferPixelFormat>(index));
+ r = pFormatList->Add(static_cast<OverlayPanel::BufferPixelFormat>(index - 1));
}
}
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, null, r, "[%s] Propagating.", GetErrorMessage(r));
r = pFormatList->Construct();
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, null, r, "[%s] Propagating.", GetErrorMessage(r));
- for (int index = 0; index < _OVERLAY_AGENT_BUFFER_PIXEL_FORMAT_MAX; index++)
+ for (int index = _OVERLAY_AGENT_BUFFER_PIXEL_FORMAT_ARGB8888; index <= _OVERLAY_AGENT_BUFFER_PIXEL_FORMAT_UYVY; index++)
{
- if (_OverlayRegionImpl::__overlayRegionPixelFomatList[index + 1])
+ if (_OverlayRegionImpl::__overlayRegionPixelFomatList[index])
{
- r = pFormatList->Add(static_cast<OverlayRegionBufferPixelFormat>(index + 1));
+ r = pFormatList->Add(static_cast<OverlayRegionBufferPixelFormat>(index));
}
}
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, null, r, "[%s] Propagating.", GetErrorMessage(r));