xpra icon
Bug tracker and wiki

Opened 13 months ago

Last modified 6 months ago

#2410 assigned enhancement

HTML5 client on HIDPI screens

Reported by: Andras Sali Owned by: Antoine Martin
Priority: minor Milestone: 4.1
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 (5)

comment:1 Changed 13 months ago by Andras Sali

Component: androidhtml5
Priority: majorminor
Type: defectenhancement

comment:2 Changed 13 months ago by Antoine Martin

Owner: changed from Antoine Martin to Andras Sali

Would such a patch be considered for inclusion in the repository?

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.

comment:3 Changed 12 months ago by Antoine Martin

Milestone: 3.04.0

Probably too late for v3.
See also #2369, #1933, #2500.

Last edited 10 months ago by Antoine Martin (previous) (diff)

comment:4 Changed 6 months ago by Antoine Martin

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 6 months ago by Antoine Martin

Milestone: 4.04.1
Owner: changed from Andras Sali to Antoine Martin
Status: newassigned
Note: See TracTickets for help on using tickets.