79 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
88
views
How to make my Win32 application not DPI-aware but also prevent Windows 10/11 from stretching the application window in blurry form?
When developing a Win32 application, is there a way to make it DPI-unware but also prevent Windows stretching my window to be blurry? I want to keep the window size as if like it was run in 100% / 96 ...
2
votes
0
answers
56
views
Widgets HiDPI but pixel-accurate layout placement and graphics
I'm making a modern-looking application (in the same theme/style as IntelliJ IDEA) that's DPI aware and everything should be pixel-accurate.
I'm using FlatLaf as the theme.
I'm forcing -Dsun.java2d....
0
votes
1
answer
83
views
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 ...
2
votes
0
answers
194
views
Java Swing HiDPI solution for icons - SVG and runtime scaling with Batik? Precompiled PNGs?
I want to make the graphics (icons, logo etc.) of an existing Java Swing application look better on HiDPI displays with a scale factor larger than 1.0, e.g. my notebook with 14" display and ...
0
votes
0
answers
136
views
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 ...
4
votes
1
answer
379
views
GraphStream 2.0 mouse pointer offset when dragging nodes (not solved)
I'm working with GraphStream and I can't get the mouse pointer to drag nodes correctly.
(Note how the mouse offset gets worse towards the bottom right corner).
This looks like exactly the same ...
1
vote
1
answer
113
views
How can I find the scaling of the LAF for HIDPI displays?
When using a HiDPI aware LAF like "GTK" instead of "metal" then components get scaled. The isssue I am having, how can I scale a custom component the same.
Here is an example where ...
matt's user avatar
- 12.4k
0
votes
1
answer
45
views
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
<img src="image.jpg"...
1
vote
0
answers
200
views
JComponent for images with no zoom for HiDPI
I'd like to have a component that shows an image in Java without zooming on HiDPI screens.
The obvious candidate is to use a JLabel. I've succesfully done it by overwriting the AffineTransform in ...
1
vote
0
answers
261
views
How to align window to windows' taskbar
I'm trying to position my Win32 API window alongside (e.g. left-sided vertical) taskbar. My display has 2560x1600 resolution and 144 DPI. I had some problems with DPI-aware apps previously, so maybe I ...
qloq's user avatar
- 1,335
1
vote
0
answers
461
views
How to detect that application is in gdi scaling mode
I use GetThreadDpiAwarenessContext and then AreDpiAwarenessContextsEqual to detect if an application is in gdi scaling mode:
AContext := GetThreadDpiAwarenessContext;
Result := ...
6
votes
0
answers
702
views
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 ...
Thomas's user avatar
- 1,772
1
vote
1
answer
1k
views
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 ...
0
votes
1
answer
80
views
Chrome SVG clip-path behave incosistent across monitors
So I have a small HTML snippet below,
<p style="clip-path: polygon(0 0, 100px 0, 100px 10px, 0 10px)">Lorem ipsum dolor sit amet</p>
<svg xmlns="http://www.w3.org/2000/svg" width="...
2
votes
1
answer
643
views
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 (...