From 11a3b0254319df625b38d765ccd47fe42273aee6 Mon Sep 17 00:00:00 2001 From: gb <741021719@qq.com> Date: Tue, 9 May 2023 09:09:14 +0800 Subject: [PATCH] fix paper size is not changed with resolution changed bug --- device/gxx-linux/usb/src/async_model/hardware/hardware.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/device/gxx-linux/usb/src/async_model/hardware/hardware.cpp b/device/gxx-linux/usb/src/async_model/hardware/hardware.cpp index 84624b5..11944b1 100644 --- a/device/gxx-linux/usb/src/async_model/hardware/hardware.cpp +++ b/device/gxx-linux/usb/src/async_model/hardware/hardware.cpp @@ -57,6 +57,7 @@ void image_capture::set_dpi_val(int dpi) int x = dpi, y = dpi; + dpi_x_ = dpi_y_ = dpi; if(first) first = false; else @@ -455,6 +456,8 @@ bool image_capture::update_enabled(const char* name, std::function