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

C++: Add slint::Window::scale_factor() getter #3004

Merged
merged 2 commits into from Jun 28, 2023
Merged

Conversation

tronical
Copy link
Member

Fixes #3003

@tronical tronical requested a review from ogoffart June 28, 2023 09:31
@tronical
Copy link
Member Author

I’ll add a test that verifies the value is greater than zero.


TEST_CASE("Window Scale Factory Existence")
{
using namespace slint::interpreter;
Copy link
Member

Choose a reason for hiding this comment

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

The window.cpp test is build unconditionally regardless of SLINT_FEATURE_INTERPRETER
So this should probably be fixed in the tests/CMakeLists.txt (But that's not a new problem)

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point, I'll push a change to master for that.

@tronical tronical merged commit 83ccd07 into master Jun 28, 2023
26 checks passed
@tronical tronical deleted the simon/cpp-scale-factor branch June 28, 2023 11:24
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.

get current DPI of a window
2 participants