GET_SHAPE_CONFIG(COLORPICKER::DIVIDER_MARGIN, orientation, __dividerMargin);
GET_SHAPE_CONFIG(COLORPICKER::DIVIDER_WIDTH, orientation, __dividerWidth);
- __topMargin = (controlBounds.height - __blockHeight * _BLOCK_COUNT) / 2;
+ __blockMargin = Tizen::Graphics::CoordinateSystem::ConvertToLogicalY(__blockMargin);
+ __dividerMargin = Tizen::Graphics::CoordinateSystem::ConvertToLogicalY(__dividerMargin);
+
+ __topMargin = (controlBounds.height - __blockHeight * _BLOCK_COUNT) / 2.0f;
if (__topMargin < 0)
{
SysTryReturn(NID_UI_CTRL, (r == E_SUCCESS), E_SYSTEM, E_SYSTEM, "[%s] Propagating.", GetErrorMessage(r));
canvas.SetForegroundColor(dividerTopHalfColor);
- canvas.SetLineWidth(__blockMargin);
+ canvas.SetLineStyle(LINE_STYLE_SOLID);
+
+ FloatPoint startPoint = Tizen::Graphics::CoordinateSystem::AlignToDevice(FloatPoint(__dividerMargin, __topMargin + __blockHeight - __blockMargin));
+ FloatPoint endPoint = Tizen::Graphics::CoordinateSystem::AlignToDevice(FloatPoint(__dividerMargin + __dividerWidth, __topMargin + __blockHeight - __blockMargin));
- r = canvas.DrawLine(FloatPoint(__dividerMargin, __topMargin + __blockHeight - __blockMargin),
- FloatPoint(__dividerMargin + __dividerWidth, __topMargin + __blockHeight - __blockMargin));
+ r = canvas.DrawLine(startPoint, endPoint);
SysTryReturn(NID_UI_CTRL, (r == E_SUCCESS), E_SYSTEM, E_SYSTEM, "[%s] Propagating.", GetErrorMessage(r));
- r = canvas.DrawLine(FloatPoint(__dividerMargin, __topMargin + __blockHeight * 2 - __blockMargin),
- FloatPoint(__dividerMargin + __dividerWidth, __topMargin + __blockHeight * 2 - __blockMargin));
+ startPoint = Tizen::Graphics::CoordinateSystem::AlignToDevice(FloatPoint(__dividerMargin, __topMargin + (__blockHeight * 2.0f) - __blockMargin));
+ endPoint = Tizen::Graphics::CoordinateSystem::AlignToDevice(FloatPoint(__dividerMargin + __dividerWidth, __topMargin + (__blockHeight * 2.0f) - __blockMargin));
+
+ r = canvas.DrawLine(startPoint, endPoint);
SysTryReturn(NID_UI_CTRL, (r == E_SUCCESS), E_SYSTEM, E_SYSTEM, "[%s] Propagating.", GetErrorMessage(r));
canvas.SetForegroundColor(dividerBottomHalfColor);
- r = canvas.DrawLine(FloatPoint(__dividerMargin, __topMargin + __blockHeight),
- FloatPoint(__dividerMargin + __dividerWidth, __topMargin + __blockHeight ));
+ startPoint = Tizen::Graphics::CoordinateSystem::AlignToDevice(FloatPoint(__dividerMargin, __topMargin + __blockHeight));
+ endPoint = Tizen::Graphics::CoordinateSystem::AlignToDevice(FloatPoint(__dividerMargin + __dividerWidth, __topMargin + __blockHeight));
+
+ r = canvas.DrawLine(startPoint, endPoint);
SysTryReturn(NID_UI_CTRL, (r == E_SUCCESS), E_SYSTEM, E_SYSTEM, "[%s] Propagating.", GetErrorMessage(r));
- r = canvas.DrawLine(FloatPoint(__dividerMargin, __topMargin + __blockHeight * 2 ),
- FloatPoint(__dividerMargin + __dividerWidth, __topMargin + __blockHeight * 2 ));
+ startPoint = Tizen::Graphics::CoordinateSystem::AlignToDevice(FloatPoint(__dividerMargin, __topMargin + (__blockHeight * 2.0f)));
+ endPoint = Tizen::Graphics::CoordinateSystem::AlignToDevice(FloatPoint(__dividerMargin + __dividerWidth, __topMargin + (__blockHeight * 2.0f)));
+
+ r = canvas.DrawLine(startPoint, endPoint);
SysTryReturn(NID_UI_CTRL, (r == E_SUCCESS), E_SYSTEM, E_SYSTEM, "[%s] Propagating.", GetErrorMessage(r));
canvas.SetForegroundColor(foregroundColor);