Home
last modified time | relevance | path

Searched refs:dpiScale (Results 1 – 25 of 96) sorted by relevance

1234

/dports/games/openra/OpenRA-release-20200503/OpenRA.Mods.Common/LoadScreens/
H A DSheetLoadScreen.cs24 float dpiScale = 1; field in OpenRA.Mods.Common.LoadScreens.SheetLoadScreen
50 if (dpiScale != scale) in Display()
52 dpiScale = scale; in Display()
65 if (dpiScale > 2 && Info.ContainsKey("Image3x")) in Display()
70 else if (dpiScale > 1 && Info.ContainsKey("Image2x")) in Display()
/dports/multimedia/kodi/xbmc-19.3-Matrix/xbmc/input/
H A DInertialScrollingHandler.cpp105 float dpiScale = 1.0; in CheckForInertialScrolling() local
107 float dpiScale = CGenericTouchInputHandler::GetInstance().GetScreenDPI() / 160.0f; in CheckForInertialScrolling() local
109 if (velocityMax > MINIMUM_SPEED_FOR_INERTIA * dpiScale) in CheckForInertialScrolling()
111 if (velocityMax < MAXIMUM_SPEED_FOR_REDUCTION * dpiScale) in CheckForInertialScrolling()
112 m_timeToZero = (m_timeToZero * velocityMax) / (MAXIMUM_SPEED_FOR_REDUCTION * dpiScale); in CheckForInertialScrolling()
/dports/science/kst2/kst-plot-38eddb5322a1d557f9d86ea95d456d76272941e3/src/libkstapp/
H A Dapplicationsettings.cpp124 qreal dpiScale = 72.0; in referenceViewWidth() local
126 dpiScale = QX11Info::appDpiX(); in referenceViewWidth()
128 return int(_refViewWidth * dpiScale * 0.3937008); in referenceViewWidth()
145 qreal dpiScale = 72.0; in referenceViewHeight() local
147 dpiScale = QX11Info::appDpiY(); in referenceViewHeight()
149 return int(_refViewHeight * dpiScale * 0.3937008); in referenceViewHeight()
/dports/www/firefox-legacy/firefox-52.8.0esr/widget/gtk/
H A DnsScreenGtk.cpp89 double dpiScale = nsIWidget::DefaultScaleOverride(); in GetDPIScale() local
90 if (dpiScale <= 0.0) { in GetDPIScale()
91 dpiScale = GetGtkMonitorScaleFactor() * gfxPlatformGtk::GetDPIScale(); in GetDPIScale()
93 return dpiScale; in GetDPIScale()
/dports/audio/surge-synthesizer-lv2/surge-release_1.9.0/vstgui.surge/vstgui/standalone/source/platform/win32/
H A Dwin32window.cpp110 double dpiScale {1.}; member in VSTGUI::Standalone::Platform::Win32::Window
250 dpiScale = static_cast<double> (newDpi) * (100. / 96.) / 100.; in setNewDPI()
252 frame->setZoom (dpiScale); in setNewDPI()
443 size.x = std::ceil (size.x * dpiScale); in proc()
444 size.y = std::ceil (size.y * dpiScale); in proc()
712 const auto edgeSizeWidth = 5 * dpiScale; in nonClientHitTest()
765 …return CPoint (std::ceil ((r.right - r.left) / dpiScale), std::ceil ((r.bottom - r.top) / dpiScale in getSize()
785 clientRect.right = static_cast<LONG> (newSize.x * dpiScale); in setSize()
786 clientRect.bottom = static_cast<LONG> (newSize.y * dpiScale); in setSize()
909 windowRect.setWidth (getSize ().x * dpiScale); in center()
[all …]
/dports/audio/vst3sdk/vst3sdk-3.7.1_build_50-1-g8199057/vstgui4/vstgui/standalone/source/platform/win32/
H A Dwin32window.cpp112 double dpiScale {1.}; member in VSTGUI::Standalone::Platform::Win32::Window
243 dpiScale = static_cast<double> (newDpi) * (100. / 96.) / 100.; in setNewDPI()
245 frame->setZoom (dpiScale); in setNewDPI()
436 size.x = std::ceil (size.x * dpiScale); in proc()
437 size.y = std::ceil (size.y * dpiScale); in proc()
706 const auto edgeSizeWidth = 5 * dpiScale; in nonClientHitTest()
759 return CPoint (std::ceil ((r.right - r.left) / dpiScale), in getSize()
760 std::ceil ((r.bottom - r.top) / dpiScale)); in getSize()
780 clientRect.right = static_cast<LONG> (newSize.x * dpiScale); in setSize()
929 windowRect.setWidth (getSize ().x * dpiScale); in center()
[all …]
/dports/games/openra/OpenRA-release-20200503/OpenRA.Game/Graphics/
H A DChromeProvider.cs63 static float dpiScale = 1; field in OpenRA.Graphics.ChromeProvider
71 dpiScale = Game.Renderer.WindowScale; in Initialize()
120 if (dpiScale > 2 && !string.IsNullOrEmpty(c.Image3x)) in SheetForCollection()
125 else if (dpiScale > 1 && !string.IsNullOrEmpty(c.Image2x)) in SheetForCollection()
278 if (dpiScale == scale) in SetDPIScale()
281 dpiScale = scale; in SetDPIScale()
/dports/devel/love/love-11.3/src/modules/graphics/
H A DFont.cpp57 , dpiScale(r->getDPIScale())
262 g.spacing = floorf(gd->getAdvance() / dpiScale + 0.5f); in addGlyph()
291 …{float(-o), (h+o)/dpiScale, normToUint16((tX-o)/tWidth), normToUint16((tY+h+o)/tHeight), c}, in addGlyph()
293 … {(w+o)/dpiScale, (h+o)/dpiScale, normToUint16((tX+w+o)/tWidth), normToUint16((tY+h+o)/tHeight), c} in addGlyph()
300 g.vertices[i].x += gd->getBearingX() / dpiScale; in addGlyph()
301 g.vertices[i].y -= gd->getBearingY() / dpiScale; in addGlyph()
336 k = floorf(r->getKerning(leftglyph, rightglyph) / dpiScale + 0.5f); in getKerning()
397 return (float) floorf(height / dpiScale + 0.5f); in getHeight()
936 return floorf(rasterizers[0]->getAscent() / dpiScale + 0.5f); in getAscent()
941 return floorf(rasterizers[0]->getDescent() / dpiScale + 0.5f); in getDescent()
[all …]
H A DCanvas.cpp39 pixelWidth = (int) ((width * settings.dpiScale) + 0.5); in Canvas()
40 pixelHeight = (int) ((height * settings.dpiScale) + 0.5); in Canvas()
/dports/multimedia/opentoonz/opentoonz-1.5.0/toonz/sources/tnztools/
H A Drulertool.cpp192 TPointD dpiScale = getViewer()->getDpiScale(); in updateToolOption() local
194 TPointD(m_firstPos.x / dpiScale.x, m_firstPos.y / dpiScale.y); in updateToolOption()
196 TPointD(m_secondPos.x / dpiScale.x, m_secondPos.y / dpiScale.y); in updateToolOption()
H A Dplastictool_rigidity.cpp258 const TPointD &dpiScale = TTool::getViewer()->getDpiScale(); in draw_rigidity() local
261 tglMultMatrix(TScale(1.0 / dpiScale.x, 1.0 / dpiScale.y)); in draw_rigidity()
/dports/games/scummvm/scummvm-2.5.1/backends/graphics/openglsdl/
H A Dopenglsdl-graphics.cpp293 float dpiScale = _window->getSdlDpiScalingFactor(); in notifyResize() local
294 …(3, "req: %d x %d cur: %d x %d, scale: %f", width, height, currentWidth, currentHeight, dpiScale); in notifyResize()
300 currentWidth = (int)(currentWidth / dpiScale + 0.5f); in notifyResize()
301 currentHeight = (int)(currentHeight / dpiScale + 0.5f); in notifyResize()
677 float dpiScale = _window->getSdlDpiScalingFactor(); in notifyEvent() local
678 windowWidth = (int)(windowWidth / dpiScale + 0.5f); in notifyEvent()
679 windowHeight = (int)(windowHeight / dpiScale + 0.5f); in notifyEvent()
/dports/graphics/tiled/tiled-1.7.2/src/tiled/
H A Dobjectreferenceitem.cpp77 const qreal dpiScale = Utils::defaultDpiScale(); in paint() local
78 painter->scale(dpiScale, dpiScale); in paint()
/dports/biology/jalview/jalview/src/jalview/bin/
H A DHiDPISetting.java144 int dpiScale = (dpi - hidpiThreshold > 0) in init() local
152 int autoScale = Math.max(dpiScale, dimensionScale); in init()
/dports/biology/jalview/jalview/getdown/src/getdown/core/src/main/java/jalview/bin/
H A DHiDPISetting.java144 int dpiScale = (dpi - hidpiThreshold > 0) in init() local
152 int autoScale = Math.max(dpiScale, dimensionScale); in init()
/dports/graphics/qgis/qgis-3.22.3/src/core/annotations/
H A Dqgsannotation.cpp333 const double dpiScale = 25.4 / qt_defaultDpiX(); in _readXml() local
337 …mFrameSize.setWidth( dpiScale * annotationElem.attribute( QStringLiteral( "frameWidth" ), QStringL… in _readXml()
341 …mFrameSize.setHeight( dpiScale * annotationElem.attribute( QStringLiteral( "frameHeight" ), QStrin… in _readXml()
346 …mOffsetFromReferencePoint.setX( dpiScale * annotationElem.attribute( QStringLiteral( "offsetX" ), … in _readXml()
350 …mOffsetFromReferencePoint.setY( dpiScale * annotationElem.attribute( QStringLiteral( "offsetY" ), … in _readXml()
/dports/devel/umbrello/umbrello-21.12.3/umbrello/umlwidgets/
H A Dumlwidget.cpp2150 qreal dpiScale = UMLApp::app()->document()->dpiScale(); in saveToXMI1() local
2151 writer.writeAttribute(QLatin1String("x"), QString::number(x() / dpiScale)); in saveToXMI1()
2152 writer.writeAttribute(QLatin1String("y"), QString::number(y() / dpiScale)); in saveToXMI1()
2153 writer.writeAttribute(QLatin1String("width"), QString::number(width() / dpiScale)); in saveToXMI1()
2154 writer.writeAttribute(QLatin1String("height"), QString::number(height() / dpiScale)); in saveToXMI1()
2171 qreal dpiScale = UMLApp::app()->document()->dpiScale(); in loadFromXMI1() local
2172 setSize(toDoubleFromAnyLocale(w) * dpiScale, in loadFromXMI1()
2173 toDoubleFromAnyLocale(h) * dpiScale); in loadFromXMI1()
2174 setX(toDoubleFromAnyLocale(x) * dpiScale); in loadFromXMI1()
2175 setY(toDoubleFromAnyLocale(y) * dpiScale); in loadFromXMI1()
H A Dassociationline.cpp337 qreal dpiScale = UMLApp::app()->document()->dpiScale(); in loadFromXMI1() local
354 setEndPoints(startPoint * dpiScale, endPoint * dpiScale); in loadFromXMI1()
365 insertPoint(i++, point * dpiScale); in loadFromXMI1()
384 qreal dpiScale = UMLApp::app()->document()->dpiScale(); in saveToXMI1() local
386 point /= dpiScale; in saveToXMI1()
392 point /= dpiScale; in saveToXMI1()
399 point /= dpiScale; in saveToXMI1()
/dports/games/scummvm/scummvm-2.5.1/backends/platform/sdl/
H A Dsdl-window.cpp200 float dpiScale = getSdlDpiScalingFactor(); in warpMouseInWindow() local
201 x = (int)(x / dpiScale + 0.5f); in warpMouseInWindow()
202 y = (int)(y / dpiScale + 0.5f); in warpMouseInWindow()
/dports/www/wt/wt-4.6.1/src/Wt/Test/
H A DWTestEnvironment.C174 void WTestEnvironment::setDpiScale(double dpiScale) in setDpiScale() argument
176 dpiScale_ = dpiScale; in setDpiScale()
/dports/graphics/qgis-ltr/qgis-3.16.16/src/core/annotations/
H A Dqgsannotation.cpp468 const double dpiScale = 25.4 / qt_defaultDpiX(); in _readXml() local
472 …mFrameSize.setWidth( dpiScale * annotationElem.attribute( QStringLiteral( "frameWidth" ), QStringL… in _readXml()
476 …mFrameSize.setHeight( dpiScale * annotationElem.attribute( QStringLiteral( "frameHeight" ), QStrin… in _readXml()
481 …mOffsetFromReferencePoint.setX( dpiScale * annotationElem.attribute( QStringLiteral( "offsetX" ), … in _readXml()
485 …mOffsetFromReferencePoint.setY( dpiScale * annotationElem.attribute( QStringLiteral( "offsetY" ), … in _readXml()
/dports/emulators/ppsspp-qt5/ppsspp-1.12.3/Common/Render/Text/
H A Ddraw_text_win.cpp34 int nHeight = -MulDiv(height, (int)(96.0f * (1.0f / dpiScale)), 72); in Create()
49 float dpiScale; member in TextDrawerFontContext
108 font->dpiScale = dpiScale_; in SetFont()
358 iter.second->dpiScale = dpiScale_; in RecreateFonts()
/dports/emulators/ppsspp/ppsspp-1.12.3/Common/Render/Text/
H A Ddraw_text_win.cpp34 int nHeight = -MulDiv(height, (int)(96.0f * (1.0f / dpiScale)), 72); in Create()
49 float dpiScale; member in TextDrawerFontContext
108 font->dpiScale = dpiScale_; in SetFont()
358 iter.second->dpiScale = dpiScale_; in RecreateFonts()
/dports/emulators/libretro-ppsspp/ppsspp-1.12.3/Common/Render/Text/
H A Ddraw_text_win.cpp34 int nHeight = -MulDiv(height, (int)(96.0f * (1.0f / dpiScale)), 72); in Create()
49 float dpiScale; member in TextDrawerFontContext
108 font->dpiScale = dpiScale_; in SetFont()
358 iter.second->dpiScale = dpiScale_; in RecreateFonts()
/dports/devel/flex-sdk/flex-sdk-4.6.0.23201/frameworks/projects/mobilecomponents/src/spark/preloaders/
H A DSplashScreen.as432 var dpiScale:Number = this.root.scaleX;
435 var stageWidth:Number = stage.stageWidth / dpiScale;
436 var stageHeight:Number = stage.stageHeight / dpiScale;
470 scaleX = 1 / dpiScale;
471 scaleY = 1 / dpiScale;

1234