Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HiDPI support #94

Merged
merged 1 commit into from
Jun 3, 2019
Merged

HiDPI support #94

merged 1 commit into from
Jun 3, 2019

Conversation

tokyovigilante
Copy link
Contributor

Enables Wayland HiDPI support. Also scale pointer
events by scale factor to match display. Closes #16.
Requires libwpe 1.3.0 and WebKit built with this patch -
https://bugs.webkit.org/attachment.cgi?id=369667&action=diff

Copy link
Member

@aperezdc aperezdc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for this patch! The logic in the code works like a charm (I did test it, even!) and my comments are mainly about coding style changes. Please take a look, and I hope you can find some time to update the PR—next time it will be reviewed much faster, I promise 🤝

platform/cog-platform-fdo.c Outdated Show resolved Hide resolved
platform/cog-platform-fdo.c Outdated Show resolved Hide resolved
platform/cog-platform-fdo.c Outdated Show resolved Hide resolved
platform/cog-platform-fdo.c Show resolved Hide resolved
platform/cog-platform-fdo.c Outdated Show resolved Hide resolved
platform/cog-platform-fdo.c Outdated Show resolved Hide resolved
platform/cog-platform-fdo.c Outdated Show resolved Hide resolved
platform/cog-platform-fdo.c Outdated Show resolved Hide resolved
platform/cog-platform-fdo.c Outdated Show resolved Hide resolved
@aperezdc
Copy link
Member

I think this PR is looking good, so I'll wait until Monday for merging—just in case anyone else wants to check it out and give feedback before that. Thanks a lot again, @tokyovigilante!

@aperezdc aperezdc requested review from elima and zdobersek May 30, 2019 11:54
@tokyovigilante
Copy link
Contributor Author

No problem! Was easy enough to get the code into Cog once all the WPE plumbing was done. Is there any chance an upcoming WPE release will have the relevant HiDPI changes included?

@aperezdc
Copy link
Member

aperezdc commented May 30, 2019

@tokyovigilante The 2.26.x stable series, and the 2.25.x development ones, will include all the changes, and we will be releasing 2.26.0 sometime in between the end of October and beginning of November. If you would really, really like to have the HiDPI support in stable releases before that, luckily the changes are all backwards-compatible, so we could look into backporting the feature to be in WPE WebKit 2.24.3 and Cog 0.3.1

@zdobersek
Copy link
Contributor

Do we also need to apply wl_data.current_output.scale to coordinates for the touch events?

@tokyovigilante
Copy link
Contributor Author

The 2.26.x stable series, and the 2.25.x development ones, will include all the changes, and we will be releasing 2.26.0 sometime in between the end of October and beginning of November.

Cool, I'm not fussed personally as I'm just manually applying the patch to the 2.24 series, but it would be nice to have them filter downstream sooner rather than later as I'm eventually hoping to distribute an app based on WPE.

@zdobersek Almost certainly yes, good catch! I haven't implemented touch in my own app yet so missed that. Will update those events and re-push.

Enables Wayland HiDPI support. Also scale pointer
events by scale factor to match display. Closes Igalia#16.
@tokyovigilante
Copy link
Contributor Author

Fixed and tested touch events, thanks!

Copy link
Member

@aperezdc aperezdc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks to @zdobersek for the extra review, and to @tokyovigilante for adding the needed changes so quickly. I consider that this is now good for merging 💪

@aperezdc aperezdc merged commit 1c707f5 into Igalia:master Jun 3, 2019
@tokyovigilante
Copy link
Contributor Author

tokyovigilante commented Jun 3, 2019 via email

@tokyovigilante tokyovigilante deleted the hidpi branch June 3, 2019 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fdo/wayland: Blurry rendering on HiDPI displays
3 participants