File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -184,6 +184,7 @@ class PageStorage {
184184 QPainter painter (&printer);
185185 for (int i=0 ;i<=page_count;i++){
186186 QImage im = loadValue (i).loadValue (loadValue (i).last_image_num );
187+ im.setDevicePixelRatio (mainWidget->devicePixelRatio ());
187188 painter.drawPixmap (0 ,0 , board->backgrounds [i]);
188189 painter.drawImage (0 ,0 , im);
189190 printer.newPage ();
@@ -446,6 +447,7 @@ void DrawingWidget::goPage(int num){
446447 images = pages.loadValue (pages.last_page_num );
447448 loadImage (images.last_image_num );
448449 board->backgrounds [old] = board->grab ();
450+ board->backgrounds [old].setDevicePixelRatio (mainWidget->devicePixelRatio ());
449451
450452 board->setType (images.pageType );
451453 board->setOverlayType (images.overlayType );
You can’t perform that action at this time.
0 commit comments