Browse Source

🐛 Fix JyersUI current positions (scaling) (#23005)

Dennis 3 years ago
parent
commit
f6c7fbd1ab
No account linked to committer's email address
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      Marlin/src/lcd/e3v2/jyersui/dwin.cpp

+ 3
- 3
Marlin/src/lcd/e3v2/jyersui/dwin.cpp View File

904
     if ((update_x = axis_should_home(X_AXIS) && ui.get_blink()))
904
     if ((update_x = axis_should_home(X_AXIS) && ui.get_blink()))
905
       DWIN_Draw_String(true, DWIN_FONT_MENU, GetColor(eeprom_settings.coordinates_text, Color_White), Color_Bg_Black, 35, 459, F("  -?-  "));
905
       DWIN_Draw_String(true, DWIN_FONT_MENU, GetColor(eeprom_settings.coordinates_text, Color_White), Color_Bg_Black, 35, 459, F("  -?-  "));
906
     else
906
     else
907
-      DWIN_Draw_FloatValue(true, true, 0, DWIN_FONT_MENU, GetColor(eeprom_settings.coordinates_text, Color_White), Color_Bg_Black, 3, 1, 35, 459, current_position.x * 10);
907
+      DWIN_Draw_FloatValue(true, true, 0, DWIN_FONT_MENU, GetColor(eeprom_settings.coordinates_text, Color_White), Color_Bg_Black, 3, 1, 35, 459, current_position.x);
908
   }
908
   }
909
   if (update_y) {
909
   if (update_y) {
910
     y = current_position.y;
910
     y = current_position.y;
911
     if ((update_y = axis_should_home(Y_AXIS) && ui.get_blink()))
911
     if ((update_y = axis_should_home(Y_AXIS) && ui.get_blink()))
912
       DWIN_Draw_String(true, DWIN_FONT_MENU, GetColor(eeprom_settings.coordinates_text, Color_White), Color_Bg_Black, 120, 459, F("  -?-  "));
912
       DWIN_Draw_String(true, DWIN_FONT_MENU, GetColor(eeprom_settings.coordinates_text, Color_White), Color_Bg_Black, 120, 459, F("  -?-  "));
913
     else
913
     else
914
-      DWIN_Draw_FloatValue(true, true, 0, DWIN_FONT_MENU, GetColor(eeprom_settings.coordinates_text, Color_White), Color_Bg_Black, 3, 1, 120, 459, current_position.y * 10);
914
+      DWIN_Draw_FloatValue(true, true, 0, DWIN_FONT_MENU, GetColor(eeprom_settings.coordinates_text, Color_White), Color_Bg_Black, 3, 1, 120, 459, current_position.y);
915
   }
915
   }
916
   if (update_z) {
916
   if (update_z) {
917
     z = current_position.z;
917
     z = current_position.z;
918
     if ((update_z = axis_should_home(Z_AXIS) && ui.get_blink()))
918
     if ((update_z = axis_should_home(Z_AXIS) && ui.get_blink()))
919
       DWIN_Draw_String(true, DWIN_FONT_MENU, GetColor(eeprom_settings.coordinates_text, Color_White), Color_Bg_Black, 205, 459, F("  -?-  "));
919
       DWIN_Draw_String(true, DWIN_FONT_MENU, GetColor(eeprom_settings.coordinates_text, Color_White), Color_Bg_Black, 205, 459, F("  -?-  "));
920
     else
920
     else
921
-      DWIN_Draw_FloatValue(true, true, 0, DWIN_FONT_MENU, GetColor(eeprom_settings.coordinates_text, Color_White), Color_Bg_Black, 3, 2, 205, 459, (current_position.z>=0) ? current_position.z * 100 : 0);
921
+      DWIN_Draw_FloatValue(true, true, 0, DWIN_FONT_MENU, GetColor(eeprom_settings.coordinates_text, Color_White), Color_Bg_Black, 3, 2, 205, 459, (current_position.z>=0) ? current_position.z : 0);
922
   }
922
   }
923
   DWIN_UpdateLCD();
923
   DWIN_UpdateLCD();
924
 }
924
 }

Loading…
Cancel
Save