FIX: fix offset of graph painting
jira: [STUDIO-10617] Change-Id: I3e924640ccfca2fa1a7ff70d54f7b48759ee1ac7
This commit is contained in:
parent
4a395a9708
commit
4fc69c70d4
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue