xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Opened 2 years ago

Last modified 8 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 2 years ago by Andras Sali

Component: androidhtml5
Priority: majorminor
Type: defectenhancement

comment:2 Changed 2 years 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 2 years ago by Antoine Martin

Milestone: 3.04.0

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

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

comment:4 Changed 18 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 18 months ago by Antoine Martin

Milestone: 4.04.1
Owner: changed from Andras Sali to Antoine Martin
Status: newassigned

comment:6 Changed 12 months ago by Antoine Martin

@sali.andrew: bump!

comment:7 Changed 9 months ago by Antoine Martin

Milestone: 4.14.2

Not heard back, so it looks like I will have to duplicate the efforts..

comment:8 Changed 8 months ago by migration script

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/2410

Note: See TracTickets for help on using tickets.