From 05466632afaa203bdb49238fef394951f4e9efac Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Sat, 19 Mar 2016 19:19:10 +0600 Subject: [PATCH] Correct main bufer height calculation again: fix regression caused by commit 3215a8ad5d95 Fixed regression issue #902 --- src/FrameBuffer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FrameBuffer.cpp b/src/FrameBuffer.cpp index abec9ffb..50201da7 100644 --- a/src/FrameBuffer.cpp +++ b/src/FrameBuffer.cpp @@ -538,9 +538,9 @@ void FrameBufferList::saveBuffer(u32 _address, u16 _format, u16 _size, u16 _widt if (m_pCurrent != NULL) { // Correct buffer's end address if (!m_pCurrent->isAuxiliary()) { - if (gDP.colorImage.height != 0) + if (gDP.colorImage.height > 200) m_prevColorImageHeight = gDP.colorImage.height; - else + else if (gDP.colorImage.height == 0) gDP.colorImage.height = m_prevColorImageHeight; gDP.colorImage.height = min(gDP.colorImage.height, VI.height); m_pCurrent->m_endAddress = min(RDRAMSize, m_pCurrent->m_startAddress + (((m_pCurrent->m_width * gDP.colorImage.height) << m_pCurrent->m_size >> 1) - 1));