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

Fix as_display_length_kind_from_px() #404

Merged
merged 2 commits into from May 30, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -423,16 +423,16 @@ as_display_length_kind_to_px (AsDisplayLengthKind kind)
AsDisplayLengthKind
as_display_length_kind_from_px (gint px)
{
if (px <= 360 )
return AS_DISPLAY_LENGTH_KIND_XSMALL;
if (px >= 360 )
return AS_DISPLAY_LENGTH_KIND_SMALL;
if (px >= 760 )
return AS_DISPLAY_LENGTH_KIND_MEDIUM;
if (px >= 900 )
return AS_DISPLAY_LENGTH_KIND_LARGE;
if (px >= 1200 )
return AS_DISPLAY_LENGTH_KIND_XLARGE;
if (px >= 900 )
return AS_DISPLAY_LENGTH_KIND_LARGE;
if (px >= 760 )
return AS_DISPLAY_LENGTH_KIND_MEDIUM;
if (px >= 360 )
return AS_DISPLAY_LENGTH_KIND_SMALL;
if (px < 360 )
return AS_DISPLAY_LENGTH_KIND_XSMALL;
return AS_DISPLAY_LENGTH_KIND_UNKNOWN;
}