diff options
author | Tony Wasserka <NeoBrainX@gmail.com> | 2014-12-28 23:33:59 +0100 |
---|---|---|
committer | Tony Wasserka <NeoBrainX@gmail.com> | 2014-12-31 16:32:55 +0100 |
commit | 3da52ead9badab44257fce6e606873f6abc7dc6f (patch) | |
tree | 0b6404e0b163271edecc388a777d6671b8b269ed /src/video_core/debug_utils | |
parent | Pica/Rasterizer: Implement alpha blending. (diff) | |
download | yuzu-3da52ead9badab44257fce6e606873f6abc7dc6f.tar yuzu-3da52ead9badab44257fce6e606873f6abc7dc6f.tar.gz yuzu-3da52ead9badab44257fce6e606873f6abc7dc6f.tar.bz2 yuzu-3da52ead9badab44257fce6e606873f6abc7dc6f.tar.lz yuzu-3da52ead9badab44257fce6e606873f6abc7dc6f.tar.xz yuzu-3da52ead9badab44257fce6e606873f6abc7dc6f.tar.zst yuzu-3da52ead9badab44257fce6e606873f6abc7dc6f.zip |
Diffstat (limited to 'src/video_core/debug_utils')
-rw-r--r-- | src/video_core/debug_utils/debug_utils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/debug_utils/debug_utils.cpp b/src/video_core/debug_utils/debug_utils.cpp index 9c0fbc453..83d585d16 100644 --- a/src/video_core/debug_utils/debug_utils.cpp +++ b/src/video_core/debug_utils/debug_utils.cpp @@ -375,9 +375,9 @@ const Math::Vec4<u8> LookupTexture(const u8* source, int x, int y, const Texture { const u8* source_ptr = source + offset * 2; u8 r = source_ptr[1] >> 4; - u8 g = source_ptr[1] & 0xFF; + u8 g = source_ptr[1] & 0xF; u8 b = source_ptr[0] >> 4; - u8 a = source_ptr[0] & 0xFF; + u8 a = source_ptr[0] & 0xF; r = (r << 4) | r; g = (g << 4) | g; b = (b << 4) | b; |