Commit a2338ed4 authored by Alexey Baskakov's avatar Alexey Baskakov Committed by Commit Bot

cros: Fix MaybeResizeAndPadIconForMd in AppList.

Minor fix for detection if transformation required.
This was found while investigating the blurry icons bug.

Bug: 1108889
Change-Id: I52514900d5c154983139a1a08c75b3505824a2c6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2331962
Auto-Submit: Alexey Baskakov <loyso@chromium.org>
Commit-Queue: Dominick Ng <dominickn@chromium.org>
Reviewed-by: default avatarVladislav Kaznacheev <kaznacheev@chromium.org>
Reviewed-by: default avatarDominick Ng <dominickn@chromium.org>
Cr-Commit-Position: refs/heads/master@{#794347}
parent f6d231b3
...@@ -245,7 +245,7 @@ void MaybeResizeAndPadIconForMd(const gfx::Size& required_size_dip, ...@@ -245,7 +245,7 @@ void MaybeResizeAndPadIconForMd(const gfx::Size& required_size_dip,
if (required_size_px.width() != bitmap.width() || if (required_size_px.width() != bitmap.width() ||
required_size_px.height() != bitmap.height() || required_size_px.height() != bitmap.height() ||
padding_px.width() != 0 || padding_px.width() != 0) { padding_px.width() != 0 || padding_px.height() != 0) {
transformation_required = true; transformation_required = true;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment