Pārlūkot izejas kodu

Fix loss of precision in X11 device info.

Marcel Admiraal 5 gadi atpakaļ
vecāks
revīzija
9369b37f1f
1 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. 4 4
      platform/linuxbsd/display_server_x11.cpp

+ 4 - 4
platform/linuxbsd/display_server_x11.cpp

@@ -254,10 +254,10 @@ bool DisplayServerX11::_refresh_device_info() {
 		bool absolute_mode = false;
 		int resolution_x = 0;
 		int resolution_y = 0;
-		int range_min_x = 0;
-		int range_min_y = 0;
-		int range_max_x = 0;
-		int range_max_y = 0;
+		double range_min_x = 0;
+		double range_min_y = 0;
+		double range_max_x = 0;
+		double range_max_y = 0;
 		int pressure_resolution = 0;
 		int tilt_resolution_x = 0;
 		int tilt_resolution_y = 0;