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

Feature/device scale factor #852

Merged
merged 2 commits into from
Mar 2, 2015

Conversation

bjarteskogoy
Copy link

Minor change needed to function correctly. (Proper render area)

I've also investigated a bit on the scale transform. It seems like CreateBitmapSourceFromMemorySection returns an image source with DpiX and DpiY set to 96 regardless of the actual dpi on the system. This is probably why the image is bitmap up-scaled. So for now the transform is needed to compensate for this.

Bjarte Skogøy added 2 commits February 27, 2015 10:33
…ing. This will provide the correct area available for rendering.
@amaitland amaitland added this to the 39.0.0 milestone Feb 28, 2015
@amaitland
Copy link
Member

Width and height are already transformed, so I'm a little concerned.

I'm contemplating reverting the previous changes until more testing/feedback have been conducted.

I think we should ask upstream for clarification

@bjarteskogoy
Copy link
Author

Yes. The previuos change will not behave correctly without this last change. Might be a good idea to check upstream. We will anyway deploy this to production. It's better than nothing, for now.

@amaitland amaitland merged commit 98ec5be into cefsharp:master Mar 2, 2015
amaitland added a commit that referenced this pull request Mar 2, 2015
… can be conducted - need to look more info how scale factor works and if the ScaleTransform we have is required.
@amaitland
Copy link
Member

I've merged in the changed, and commented them out in a later commit.

When I tried with 125% on my standard 1080 monitor the mouse clicks/drags were out, so more work is required to get this working properly.

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.

2 participants