FIX: fix offset of graph painting

jira: [STUDIO-10617]
Change-Id: I3e924640ccfca2fa1a7ff70d54f7b48759ee1ac7
This commit is contained in:
xin.zhang 2025-02-28 09:34:38 +08:00 committed by lane.wei
parent 4a395a9708
commit 4fc69c70d4
1 changed files with 2 additions and 2 deletions

View File

@ -2632,11 +2632,11 @@ void AMSPreview::doRender(wxDC &dc)
if (iter->material_colour.Alpha() == 0) {
if (wxGetApp().dark_mode())
{
dc.DrawBitmap(m_ts_bitmap_cube_dark.bmp(), left - FromDIP(2), (size.y - m_ts_bitmap_cube_dark.GetBmpHeight()) / 2);
dc.DrawBitmap(m_ts_bitmap_cube_dark.bmp(), left - FromDIP(1), (size.y - m_ts_bitmap_cube_dark.GetBmpHeight()) / 2);
}
else
{
dc.DrawBitmap(m_ts_bitmap_cube.bmp(), left - FromDIP(2), (size.y - m_ts_bitmap_cube.GetBmpHeight()) / 2);
dc.DrawBitmap(m_ts_bitmap_cube.bmp(), left - FromDIP(1), (size.y - m_ts_bitmap_cube.GetBmpHeight()) / 2);
}
}
else {