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

SwiftWin32: extract the ScaleClient(rect:for:_) #761

Merged
merged 1 commit into from
Sep 24, 2023
Merged

Conversation

compnerd
Copy link
Owner

This refactors the DPI scaling for the rectangle to a function that we can use more broadly internally. The broader availability prepares us for fixing higher DPI displays.

This refactors the DPI scaling for the rectangle to a function that we
can use more broadly internally.  The broader availability prepares us
for fixing higher DPI displays.
@codecov
Copy link

codecov bot commented Sep 24, 2023

Codecov Report

Merging #761 (75e52cc) into main (387cea8) will decrease coverage by 0.17%.
The diff coverage is 64.28%.

@@            Coverage Diff             @@
##             main     #761      +/-   ##
==========================================
- Coverage   27.18%   27.01%   -0.17%     
==========================================
  Files         130      130              
  Lines        5385     5385              
==========================================
- Hits         1464     1455       -9     
- Misses       3921     3930       +9     
Files Changed Coverage Δ
Sources/SwiftWin32/Views and Controls/View.swift 40.83% <42.85%> (-0.62%) ⬇️
Sources/SwiftWin32/CG/Rect.swift 85.71% <85.71%> (ø)

... and 1 file with indirect coverage changes

@compnerd compnerd merged commit 205ab85 into main Sep 24, 2023
9 of 12 checks passed
@compnerd compnerd deleted the compnerd/dpi branch September 24, 2023 13:00
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.

1 participant