Opened 20 months ago
Last modified 3 months ago
#2410 assigned enhancement
HTML5 client on HIDPI screens
Reported by: | Andras Sali | Owned by: | Antoine Martin |
---|---|---|---|
Priority: | minor | Milestone: | 4.2 |
Component: | html5 | Version: | 3.0.x |
Keywords: | Cc: |
Description
Hi,
I wanted to ask if there are plans to support HiDPI (e.g. Retina) screens for HTML 5 clients. Out of the box the HTML 5 client will use the css width / height properties to render the server screen, which will result in relatively low resolution displays (the virtualized screen resolution is small).
With some small changes we managed to get around this by using the window.devicePixelRatio to render a higher res screen on the server and scale it back via css transform to the original screen (plus some small changes on the mouse handling). After this the screens look nice and sharp on Retina displays as well.
Would such a patch be considered for inclusion in the repository? Many screens these days tend to have HIDPI resolutions, so some kind of better support might be welcomed by the community.
Many thanks for your great work on this project,
Regards,
Andras
Change History (8)
comment:1 Changed 20 months ago by
Component: | android → html5 |
---|---|
Priority: | major → minor |
Type: | defect → enhancement |
comment:2 Changed 20 months ago by
Owner: | changed from Antoine Martin to Andras Sali |
---|
comment:3 Changed 19 months ago by
Milestone: | 3.0 → 4.0 |
---|
comment:4 Changed 13 months ago by
Easy enough to reproduce with any browser by scaling up.
@sali.andrew: time to get your code merged, or things will diverge and we'll all end up wasting time.
comment:5 Changed 13 months ago by
Milestone: | 4.0 → 4.1 |
---|---|
Owner: | changed from Andras Sali to Antoine Martin |
Status: | new → assigned |
comment:7 Changed 4 months ago by
Milestone: | 4.1 → 4.2 |
---|
Not heard back, so it looks like I will have to duplicate the efforts..
comment:8 Changed 3 months ago by
this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/2410
Sure, that would be great, please send your version of the changes.
Normally, this should not require any server-side changes.
I don't have any hardware to test it, but I think there are ways to force enable hidpi.