Assign the pixelRatio of the application to the buffer of the work area.
bp_.html_be_strict = outputModule->strictCB->isChecked();
bp_.html_css_as_file = outputModule->cssCB->isChecked();
bp_.html_math_img_scale = outputModule->mathimgSB->value();
+ bp_.display_pixel_ratio = theGuiApp()->pixelRatio();
// fonts
bp_.fonts_roman =
: d(new Private(this))
{
setGuiView(gv);
+ buffer.params().display_pixel_ratio = theGuiApp()->pixelRatio();
setBuffer(buffer);
init();
}
double GuiWorkArea::pixelRatio() const
{
-#if QT_VERSION > 0x050000
+#if QT_VERSION >= 0x050000
return devicePixelRatio();
#else
return 1.0;