mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
FIX: fix offset of graph painting
jira: [STUDIO-10617] Change-Id: I3e924640ccfca2fa1a7ff70d54f7b48759ee1ac7 (cherry picked from commit 4fc69c70d4b1d3cf75b40ca09c660731ba2af85c)
This commit is contained in:
@@ -2632,11 +2632,11 @@ void AMSPreview::doRender(wxDC &dc)
|
|||||||
if (iter->material_colour.Alpha() == 0) {
|
if (iter->material_colour.Alpha() == 0) {
|
||||||
if (wxGetApp().dark_mode())
|
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
|
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 {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user