Skip to content

Commit

Permalink
Update Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
chiaramooney committed Dec 5, 2022
1 parent bc7469a commit 15429f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ exports[`LegacySelectableTextTest DoubleClickWhenSelectable 1`] = `
"Left": 0,
"Margin": "0,0,0,0",
"Padding": "0,0,0,0",
"Text": "Pressed: 1 times.",
"Text": "Pressed: 2 times.",
"Top": 0,
"VerticalAlignment": "Stretch",
"Visibility": "Visible",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,8 @@ inline int toAndroidRepr(const SharedColor &color) {
ColorComponents components = colorComponentsFromColor(color);
auto ratio = 255.f;
return (
((int)round(components.alpha * ratio) & 0xff) << 24 |
((int)round(components.red * ratio) & 0xff) << 16 |
((int)round(components.green * ratio) & 0xff) << 8 |
((int)round(components.blue * ratio) & 0xff));
((int)round(components.alpha * ratio) & 0xff) << 24 | ((int)round(components.red * ratio) & 0xff) << 16 |
((int)round(components.green * ratio) & 0xff) << 8 | ((int)round(components.blue * ratio) & 0xff));
}

#endif
Expand Down

0 comments on commit 15429f7

Please sign in to comment.