Skip to content

Commit

Permalink
Core (LV::Video): Use the correct source alpha.
Browse files Browse the repository at this point in the history
  • Loading branch information
kaixiong committed Feb 5, 2023
1 parent 0188f89 commit a36b1de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libvisual/libvisual/private/lv_video_blit_simd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ namespace LV {
// See the pure C implementation in blit_overlay_alphsrc() for the calculation involved.

// Load source alpha as a 16-bit int.
uint16_t const src_alpha = *reinterpret_cast<uint8_t const*> (src_pixel);
uint16_t const src_alpha = reinterpret_cast<uint8_t const*> (src_pixel)[3];

// Load source and target pixel values into MMX registers, each channel zero-extended into 16 bits.
auto src = _mm_cvtsi32_si64 (*src_pixel);
Expand Down

0 comments on commit a36b1de

Please sign in to comment.