mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Remove unused code. Fix code formatting.
This commit is contained in:
parent
8463c0347f
commit
57e88cb800
|
@ -302,19 +302,14 @@ bool FrameBuffer::isValid() const
|
||||||
++wrongPixels;
|
++wrongPixels;
|
||||||
}
|
}
|
||||||
return wrongPixels < (m_endAddress - m_startAddress) / 400; // treshold level 1% of dwords
|
return wrongPixels < (m_endAddress - m_startAddress) / 400; // treshold level 1% of dwords
|
||||||
}
|
} else if (m_fingerprint) {
|
||||||
else if (m_fingerprint) {
|
|
||||||
//check if our fingerprint is still there
|
//check if our fingerprint is still there
|
||||||
const u32 stride = m_width << m_size >> 1;
|
|
||||||
const u32 height = _cutHeight(m_startAddress, m_height, stride);
|
|
||||||
const u32 dataSize = stride * height;
|
|
||||||
u32 start = m_startAddress >> 2;
|
u32 start = m_startAddress >> 2;
|
||||||
for (u32 i = 0; i < 4; ++i)
|
for (u32 i = 0; i < 4; ++i)
|
||||||
if ((pData[start++] & 0xFFFEFFFE) != (fingerprint[i] & 0xFFFEFFFE))
|
if ((pData[start++] & 0xFFFEFFFE) != (fingerprint[i] & 0xFFFEFFFE))
|
||||||
return false;
|
return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
} else if (!m_RdramCopy.empty()) {
|
||||||
else if (!m_RdramCopy.empty()) {
|
|
||||||
const u32 * const pCopy = (const u32*)m_RdramCopy.data();
|
const u32 * const pCopy = (const u32*)m_RdramCopy.data();
|
||||||
const u32 size = m_RdramCopy.size();
|
const u32 size = m_RdramCopy.size();
|
||||||
const u32 size_dwords = size >> 2;
|
const u32 size_dwords = size >> 2;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user