dpi-dependent methods

This commit is contained in:
2021-06-14 15:45:29 +03:00
parent b09390a460
commit 8646132928
10 changed files with 18 additions and 18 deletions

View File

@@ -126,7 +126,7 @@ Graphic::Graphic(QWidget * parent): QFrame(parent), canvas(0), line_x_min(this),
gridx = gridy = 1.;
history = 5.;
visible_time = -1.;
thick = lineThickness();
thick = lineThickness(this);
pause_phase = 0.;
def_rect.setRect(0., 0., 1., 1.);
selrect = def_rect;
@@ -320,7 +320,7 @@ void Graphic::canvasPaintEvent() {
#else
font_sz.setWidth(font_sz.width() * 8);
#endif
thick = lineThickness();
thick = lineThickness(this);
if (buffer != 0) if (buffer->width() != wid || buffer->height() != hei) {delete buffer; buffer = 0;}
if (buffer == 0) buffer = new QImage(wid, hei, QImage::Format_RGB32);
if (bufferActive) {