mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Issue #123: DPI scaling
This commit is contained in:
@ -187,6 +187,10 @@ bool PDFBLPaintEngine::begin(QPaintDevice*)
|
||||
if (m_blContext->begin(m_blOffscreenBuffer.value(), info) == BL_SUCCESS)
|
||||
{
|
||||
m_blContext->clearAll();
|
||||
|
||||
qreal devicePixelRatio = m_qtOffscreenBuffer.devicePixelRatioF();
|
||||
m_blContext->scale(devicePixelRatio);
|
||||
m_blContext->userToMeta();
|
||||
return true;
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user