mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
Clarify comment in draw_image_impl
This commit is contained in:
parent
0a2385ad58
commit
f1d41db006
1 changed files with 3 additions and 2 deletions
|
@ -1324,8 +1324,9 @@ impl GLItemRenderer {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// It's possible that our cached image went from no colorization to some brush, in which case we have to
|
// It's possible that our item cache contains an image but it's not colorized yet because it was only
|
||||||
// invalidate the cache and try again.
|
// placed there via the `image_size` function (which doesn't colorize). So we may have to invalidate our
|
||||||
|
// item cache and try again.
|
||||||
if colorize_property.map_or(false, |prop| !matches!(prop.get(), Brush::NoBrush))
|
if colorize_property.map_or(false, |prop| !matches!(prop.get(), Brush::NoBrush))
|
||||||
&& !cached_image.is_colorized_image()
|
&& !cached_image.is_colorized_image()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue