mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-09-29 00:43:13 +08:00
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 (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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user