mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-29 19:10:26 +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
Notes:
sideshowbarker
2024-07-17 14:17:56 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/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…
Reference in a new issue