mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2025-01-09 02:05:38 +00:00
Refactor
This commit is contained in:
parent
0112f2cca7
commit
623f792904
|
@ -363,7 +363,7 @@ void Image::ContentAwareDownscale(uint32 xtimes, uint32 ytimes,
|
||||||
void Image::ChangeBitDepth(const uint8 (&depths)[4]) {
|
void Image::ChangeBitDepth(const uint8 (&depths)[4]) {
|
||||||
for(uint32 j = 0; j < GetHeight(); j++) {
|
for(uint32 j = 0; j < GetHeight(); j++) {
|
||||||
for(uint32 i = 0; i < GetWidth(); i++) {
|
for(uint32 i = 0; i < GetWidth(); i++) {
|
||||||
uint32 pidx = j * GetWidth() + i;
|
uint32 pidx = GetPixelIndex(i, j);
|
||||||
m_Pixels[pidx].ChangeBitDepth(depths);
|
m_Pixels[pidx].ChangeBitDepth(depths);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue