Questions tagged [hidpi]
76 questions
3
votes
0 answers
Fractional Swing UI scale not supported in Java under Linux
I would like to influence the UI scale of a standard Swing application with default L&F. Unfortunately scaling factor 1.0 is too small and 2.0 is too big. In my Linux fractional scaling factors are simply ignored. I searched already but can not find…

Thomas
- 1,622
- 17
- 24
3
votes
2 answers
LoadCursor and Mixed DPI Multiple Monitors
When the LoadCursor function is used to load a cursor from a resource, the resulting HCURSOR can be used across different monitors and always appears at the correct size.
ie: typically:
on a 96 dpi monitor the 32x32 resource is used,
on a 192 dpi…

Brad Robinson
- 44,114
- 19
- 59
- 88
3
votes
1 answer
Android studio "hidpi=true" not works
After upgrading to Android Studio 4.0.1 Build #AI-193.6911.18.40.6626763 from 3.6.1 IDE's scale factor become incorrect (all UI elements become small). Appending "hidpi=true" in idea.properties has no effect.
Adding "-Dsun.java2d.uiScale=2…

wingear
- 819
- 9
- 21
3
votes
0 answers
BoxLayout artifact at 125% display scaling
This simple Java swing BoxLayout UI apparently results in certain pixels not being drawn (resulting in artifacts/garbage) when my display scaling is set to 125% (Windows 10):
import javax.swing.*;
public class Test {
public static void…

tehtmi
- 676
- 4
- 7
3
votes
2 answers
Disable automatic rescaling of BufferedImage in JDK9
I use a customised renderer for rescaling the screen for my 8 bit computer emulators that works nicely in pre Java 9 environments. In Java 9, it creates triangular distortions on the main screen when the JVM automatically resizes the screen to…

William McCabe
- 69
- 5
3
votes
3 answers
Markdown with HiDPI/Retina images
How can I display images on a HiDPI display using HTML produced from Markdown such that the images are shown in high resolution. Normally, I'd create
tags with srcset attributes or set the width and height on each image appropriately or use…

at.
- 50,922
- 104
- 292
- 461
2
votes
1 answer
wxWidgets 3.1.5 MSW - HiDPI scaling problems causing controls to have the incorrect size
Information about my setup
wxWidgets: 3.1.5 (also tried the latest source from github)
wxWidgets: built using gcc-11.2 under msys2 (ucrt64)
Windows 10 Application: build using gcc-11.2 under msys2 (ucrt64)
Monitor native resoultion: 3840 x…

Amanda
- 321
- 2
- 12
2
votes
0 answers
Winforms high DPI not scaling font sizes
In my .NET 4.7 Windows Forms application, I configured high DPI support by following the instructions here.
I configure my Windows like this:
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode =…

TheNextman
- 12,428
- 2
- 36
- 75
2
votes
2 answers
Visual studio MFC dialog editor seems broken on my HiDPI monitor - is this a known problem?
I am coding a C++ project using MFC in Visual Studio (v16.5.4). The dialog editor seems badly broken on my HiDPI monitor (Lenovo ThinkVision 2880x1800 at 175%). It works fine on two other computers with standard monitors.
The dialogs get resized…

Bill Heitler
- 187
- 3
- 13
2
votes
1 answer
How to set fixed Icon size that scales with HiDPI in Qt
How can I set Icon size in my application so that it's still scaled when the users uses Screen Scaling?
In my application I have a QToolBar in the MainWindow that seems to use an Icon size of 24x24. I have some QToolButton which seem to get an Icon…

Damir Porobic
- 681
- 1
- 8
- 21
2
votes
1 answer
game displayed in the bottom-left quarter of my screen in SDL2
I recently updated my mac and the code that was normally running stopped functioning.
When I now run my program (a game) the window still has the right dimensions but the elements are displayed in the bottom-left quarter of my screen.
I don't…

Amition
- 105
- 7
2
votes
0 answers
Why width of container smaller on full hd laptop?
I have a html template for Joomla SPPB with:
It have container:
@media (min-width: 1200px) {
.ph {
max-width: 1140px;
…

gvozd1989
- 300
- 1
- 16
2
votes
1 answer
What is the WPF equivalent of Cocoa/CSS image.png/image@2x.png concept?
For a Mac/iOS application to support retina/high fidelity screens, additional double-resolution bitmap images need to be included with "@2x" just before the file extension. E.g.:
logo.png (32x32)
logo@2x.png (64x64)
In code we only need to refer…

Greg
- 143
- 1
- 7
2
votes
1 answer
HiDPI / backingScaleFactor on MacOS, how to get actual value?
I'm trying to get the display scaling setting for the current screen so that I can correctly scale inside my OpenGL and/or Vulkan window to match the setting that the OS has. The documentation says to use
float dpi = [window…

burito
- 813
- 1
- 7
- 22
2
votes
1 answer
FabricJS HiDPI getImageData
I'm still gathering the pieces needed to understand a web 2 print editor in HTML5. I'm using FabricJS and a bunch of other 3rd party tools to make it a possibility.
My latest roadblock is my Samsung Chromebook Pro, which has a HiDPI/retina display.…

Rick Yoder
- 131
- 11