Questions tagged [hidpi]
76 questions
0
votes
1 answer
How to get dpi using program on Xfce Desktop environment?
Xfce supports HiDPI scaling which can be enabled using the settings manager:
1.Go to Settings Manager > Appearance > Settings > Window Scaling and select 2 as the scaling factor.
I wonder to know if we adjust 'Window Scaling' is '2X', at this point,…

hyt
- 21
- 1
- 3
0
votes
1 answer
Chrome SVG clip-path behave incosistent across monitors
So I have a small HTML snippet below,
Lorem ipsum dolor sit amet
0
votes
1 answer
Detecting HIDPI settings in JavaFX application
Currently, I am using JDK 15 and JavaFX 15 in GNOME/Wayland on Linux on a 4K monitor. It appears that the produced apps cannot detect my 200% upscale setting.
When researching I came up with this bug ticket that suggests moving to JavaFX 11, which…

noconst
- 639
- 4
- 15
0
votes
1 answer
Swing HiDPI Border rendering (Windows 10/OpenJRE 11)
I maintain an old Swing application that uses custom border implementations as window decorations with a look and feel implementation which extends MetalLookAndFeel. The look and feel overrides initComponentDefaults(UIDefaults table) and installs…

fireandfuel
- 732
- 1
- 9
- 22
0
votes
2 answers
QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling, True) not working at all on python
I've been programming an application with PySide2 and Python 3.8, and i was trying to enable HiDPi, and i found that adding this at the start of the script
QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling,…

Martí Climent
- 407
- 4
- 9
0
votes
0 answers
Set environment variable for X tray
I want to set GDK_SCALE and GDK_DPI_SCALE environment variables for the entire system (to deal with HiDPI) except the process that's in charge of X tray icons. I'm struggling to figure out what's the lower-level process that's in charge of that. I…

Milad
- 4,901
- 5
- 32
- 43
0
votes
1 answer
SDL_GetCurrentDisplayMode not returning correct window size
My Question is how to get the current window size?
It needs to be able to get the window size, both fullscreen or windowed.
I am using SDL2, Glad, OpenGL #ver 130. On Window 10 with scaling.
I initialized the window to be…

fast_cookies_delivery
- 11
- 1
- 4
0
votes
1 answer
Running Swing apps in IntelliJ Idea Community on a HiDPI screen
I run Arch Linux with I3 on an XPS13 with 3200x1800 res screen.
I'm currently working on some Swing apps. When I run my app from the commandline with the java -Dsun.java2d.uiScale=2 myApp, the app is scaled (else it's just too small).
I also have…

greenleafvolatile
- 13
- 4
0
votes
1 answer
Windows scale is affecting my application font
I'm having an issue on my program when i run it with scale 100% in windows settings the application looks good as i design it. But when the scale is set for example to 125%. I got a problem with graphics the font became more big.
I build different…

Bouraoui Al-Moez L.A
- 679
- 6
- 16
0
votes
1 answer
How to use QVTKOpenGLWidget with proper hidpi
When I try QVTKWidget, there are warning messages that told me donot use it.
So I change to QVTKOpenGLWidget.
But there are problems with this widget, it doesnot display properly. See the picture.
I use
VTK 8.1.2
Qt 5.12.3
win10 +…

Laine
- 179
- 1
- 8
0
votes
1 answer
"Open in Low Resolution" from command line
Mac OS provides the handy functionality of rendering an application in in low non-retina resolution by setting a checkbox "Open in Low Resolution" in the application info. However, for development, I start my application using a run configuration…

user3207838
- 676
- 1
- 7
- 15
0
votes
0 answers
QML Image Element > Retina/HiDPI support for network based images
Image element of the QtQuick supports HiDPI images automatically as you know. For example it can loads @2x images in the iOS and MacOS platforms. Same code works OK on the Android platform.
There is a section in the official documentation that…

S.M.Mousavi
- 5,013
- 7
- 44
- 59
0
votes
4 answers
Getting Retina Screen Resolution on Macs with HiDPI in Unity
I am making a custom Unity Editor GUI window and I just want it to stay and the exact center of the screen. Surprisingly, this is harder than I thought it would be on Macs.
This is my code:
....
windowRect.center = new Rect(0, 0,…

B.Wang
- 1
- 1
0
votes
1 answer
Starting application from shell does not use HiDPI configuration
I have a Dell XPS 15 with a 4k monitor. I am using ArchLinux and KDE.
When I start an application from the menu, the application is properly scaled.
When I start it from the shell, for example "kate filename", the configuration HiDPI is not taken…
user1407269
0
votes
1 answer
Proper HiDPI rendering of Canvas elements (with Konva.js)?
I built a small HTML5 Canvas animation using components from Konva.js. Everything works great, except that the Canvas element is 2x the size I'd expect - I think because I have a HiDPI/Retina display. Specifically the element looks like