mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-13 11:42:38 +03:00
LibGfx: Remove unreachable branch in Painter::draw_scaled_bitmap
This is in the else block of a `(source.has_alpha_channel() || opacity != 1.0f)` conditional, so it's guaranteed that !source.has_alpha_channel() in here, which means source.format() can't be RGBA32. No behavior change.
This commit is contained in:
parent
ea8baaa1ab
commit
75b7880f54
Notes:
sideshowbarker
2024-07-18 22:52:23 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/75b7880f54c Pull-request: https://github.com/SerenityOS/serenity/pull/5110
@ -877,9 +877,6 @@ void Painter::draw_scaled_bitmap(const IntRect& a_dst_rect, const Gfx::Bitmap& s
|
||||
case BitmapFormat::RGB32:
|
||||
do_draw_scaled_bitmap<false>(*m_target, dst_rect, clipped_rect, source, src_rect, get_pixel<BitmapFormat::RGB32>, opacity);
|
||||
break;
|
||||
case BitmapFormat::RGBA32:
|
||||
do_draw_scaled_bitmap<false>(*m_target, dst_rect, clipped_rect, source, src_rect, get_pixel<BitmapFormat::RGBA32>, opacity);
|
||||
break;
|
||||
case BitmapFormat::Indexed8:
|
||||
do_draw_scaled_bitmap<false>(*m_target, dst_rect, clipped_rect, source, src_rect, get_pixel<BitmapFormat::Indexed8>, opacity);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user