mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:07:34 +00:00
LibWeb: Fix logic mistake in CRC2D's default_source_size()
If the source has a bitmap, we should indeed use the bitmap's size instead of always using the source's own size.
This commit is contained in:
parent
cb3a2b347b
commit
36d9943d3a
1 changed files with 3 additions and 2 deletions
|
@ -102,9 +102,10 @@ static void default_source_size(CanvasImageSource const& image, float& source_wi
|
|||
if (source->bitmap()) {
|
||||
source_width = source->bitmap()->width();
|
||||
source_height = source->bitmap()->height();
|
||||
} else {
|
||||
source_width = source->width();
|
||||
source_height = source->height();
|
||||
}
|
||||
source_width = source->width();
|
||||
source_height = source->height();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue