mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-11 11:55:36 +08:00
15 lines
459 B
C++
15 lines
459 B
C++
#pragma once
|
|
#include "stdafx.h"
|
|
#include "DIB.h"
|
|
#include "../../Interfaces/ASCGraphicsRenderer.h"
|
|
|
|
void NSDocumentViewer::CPainter::SetDpi(double dDpiX, double dDpiY)
|
|
{
|
|
m_dKoefPixToMM_X = c_dInch_to_MM / dDpiX;
|
|
m_dKoefPixToMM_Y = c_dInch_to_MM / dDpiY;
|
|
|
|
double dWidthMM = m_lDisplayWidth * m_dKoefPixToMM_X;
|
|
double dHeightMM = m_lDisplayHeight * m_dKoefPixToMM_Y;
|
|
|
|
((CASCGraphicsRenderer*)m_pRenderer)->SetSizes(dWidthMM, dHeightMM);
|
|
} |