mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-09-21 03:03:13 +08:00
FIX:display correct humidity
jira:[fix] Change-Id: I27aae54a8355911b5d88ed45be320d3c9178081c
This commit is contained in:
parent
9b3d7c36ff
commit
9e39016837
@ -1576,12 +1576,15 @@ void AMSRoad::doRender(wxDC &dc)
|
|||||||
|
|
||||||
if (m_amsinfo.ams_humidity >= 1 && m_amsinfo.ams_humidity <= 5) {
|
if (m_amsinfo.ams_humidity >= 1 && m_amsinfo.ams_humidity <= 5) {
|
||||||
|
|
||||||
int hum_index = m_amsinfo.ams_humidity - 1;
|
int hum_index = 6 - m_amsinfo.ams_humidity - 1;
|
||||||
if (wxGetApp().dark_mode()) {
|
if (wxGetApp().dark_mode()) {
|
||||||
hum_index += 5;
|
hum_index += 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (hum_index >= 0) {
|
||||||
dc.DrawBitmap(ams_humidity_img[hum_index].bmp(), wxPoint(size.x - FromDIP(33), size.y - FromDIP(33)));
|
dc.DrawBitmap(ams_humidity_img[hum_index].bmp(), wxPoint(size.x - FromDIP(33), size.y - FromDIP(33)));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
//to do ...
|
//to do ...
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user