mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-06 06:47:41 -07:00
FIX: fix offset of graph painting
jira: [STUDIO-10617] Change-Id: I3e924640ccfca2fa1a7ff70d54f7b48759ee1ac7 (cherry picked from commit 4fc69c70d4b1d3cf75b40ca09c660731ba2af85c)
This commit is contained in:
parent
aa728809d3
commit
e68300ef99
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue