Questions tagged [hidpi]
76 questions
1
vote
1 answer
NSImageView 72dpi image blurry on HiDPI display
I'm loading a 72dpi image into an NSImageView and it looks very blurry on a HiDPI display. How can it get to render perfectly crisp?
I worked out I can improve by adding this entirely non-sensical override to NSImageView, but it doesn't fix it…

Gannet
- 1,315
- 13
- 18
1
vote
3 answers
xrandr two screens different resolution without invisible area
Update: the problem has fixed itself. It must have happened with an update of xrandr, Xorg, nvidia or intel gpu drivers, or anything else related, but it works fine again! It wasn't my fault after all...
My laptop has a 4K (3840x2160) screen (dual…

scippie
- 2,011
- 1
- 26
- 42
1
vote
1 answer
Can we bypass HiDPI UI scaling when rendering high-res RenderedImages in Java 9+
I am working on a medical image viewer, and would like to take advantage of the HiDPI scaling options offered by Java since Java 9. I like that Java/Swing is not able to properly scale up fonts, layouts, and various UI elements, but as has been…

J.F. Richard
- 11
- 2
1
vote
0 answers
Linux QT5 DPI scale issue
OS: OpenSuSE TumbleWeed, XFCE 4.14, with HiDPI display, Font size @144DPI
GTK Programs UI are all fine.
QT_SCALE_FACTOR=1
if set in /etc/environment
QT_AUTO_SCREEN_SET_FACTOR=0
QT_SCALE_FACTOR=1.00
kate, keepassxc, KAddressBook, KTnef, KNotes... UI…

user293074
- 41
- 4
1
vote
1 answer
GLUT problem with the support of hidpi retina on macOS (c++)
I making a port of my 3d program to macOS.
I'm using c++ and FreeGlut at windows. So at macOS, I've started to use it with GLUT. I don't use cocoa and create an OpenGL window context via GLUT.
There is a problem with the support of hidpi…

user3418722
- 11
- 1
1
vote
1 answer
Scaling Java apps in Fedora 31
so I spent days looking through the internet but couldn't solve my problem. I recently installed Fedora 31 on my Matebook X Pro (3000 x 2000 resolution), and my GUI was tiny. So I could scale my GUI in the settings to 200% and everything works…

NiTE97
- 11
- 1
1
vote
1 answer
Scroll get stuck only on HiDpi screen when touching top or bottom of the page
Im building a portfolio site, my scroll bar get stuck when it touches the top or the bottom of the page, sometimes even sooner. I think the problem has something to do with pixels amount on a higher dpi screen.
I also used some effects like…

Jordan
- 145
- 8
1
vote
2 answers
Using SVG icons on HiDPI displays in PyQt5
I would like to use high-resolution icons in my PyQt5 application. However, the following code snippet produces a very low-res rendering on my HiDPI macOS platform (the required icon can be downloaded here):
import sys
from PyQt5.QtWidgets import…

cbrnr
- 1,564
- 1
- 14
- 28
1
vote
1 answer
Eclipse on Linux some fonts are too small (git staging, dialog, outline, problems etc)
Well, I am using Spring Tools Suite 4.12 (based on Eclipse 4.11) one Deepin OS (which is debian based).
My screen is 3K, (2880x1620). Deepin allows me to scale the screen, so my display is set to native resolution, and in Deepin, I set the scale to…

The MW
- 401
- 4
- 15
1
vote
1 answer
Copy a bitmap image to the clipboard in Win 10 with GDI Scaling active
I have an MFC desktop application that generates a graphics image, and I want the user to be able to copy it to the clipboard as a bitmap. I use standard clipboard API routines and they have been working fine up to now. However, I have now activated…

Bill Heitler
- 187
- 3
- 13
1
vote
0 answers
What causes this tiny font in GUI (High DPI settings enabled)?
I have developed an application what - for one user - shows a tiny font size:
The title bar is not affected by this strange behaviour.
The menustrip and the tab control however is.
I don't play with the font at all.
I've tried different DPI…

tmighty
- 10,734
- 21
- 104
- 218
1
vote
0 answers
OS X retina MouseEvent coordination
I am creating Java Swing Application using JOGL.
I want to get mouse coordination when mouse clicked in GLJPanel.
If I experiment with a Retina display, a return coordinate is strange.
The more deviation the coordinates are from the origin, the…

user22852
- 21
- 1
0
votes
1 answer
How can I change the mouse position so that an installed low-level mousehook is invoked
I installed a low-level mousehook (WH_MOUSE_LL) to get the correct screen cursor position on a mixed HiDpi system (two monitors) (the application itself is not HiDpi aware).
How can I change the mouse position in code so that the hook is called as…

AWirthK2
- 46
- 2
0
votes
0 answers
Swing JLabel icon: use same image for all resolutions
I know they are quite a few forums that kinda talks about this, but my problem is that I have a JLabel with an icon which I do NOT want to scale when resolution is <> 100% ! I.e. (sorry, in french):
Initially, I set my JLabel icon with something…

Pat
- 449
- 1
- 4
- 14
0
votes
1 answer
Srcset get different image aspect on small hires screens like smartphones
I want to display a banner on a website. On 4k screens it should be larger on smartphones smaller but higher like 780x550px
I use a image with with a srcset like this


RubbelDeCatc
- 747
- 1
- 8
- 10