mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 07:36:50 +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:
@@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user