mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2025-01-23 19:21:09 +00:00
Add superfluous code from when I was trying to match the decoder to PVR library.
This commit is contained in:
parent
09b5680245
commit
6c8eea5520
|
@ -238,12 +238,9 @@ void Image::ExpandTo8888() {
|
|||
|
||||
uint32 shift = fractionDepth[c] - (fullDepth[c] - currentDepth[c]);
|
||||
uint32 fractionBits = m_FractionalPixels[pidx].Component(c) >> shift;
|
||||
assert(fractionBits < 8);
|
||||
|
||||
uint32 component = m_Pixels[pidx].Component(c);
|
||||
component += ((fractionBits * numerator) / denominator);
|
||||
if(component > 255)
|
||||
component = 255;
|
||||
|
||||
m_Pixels[pidx].Component(c) = component;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue