Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions lib/gui/evideo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,18 @@ void eVideoWidget::updatePosition(int disable)

if (!disable)
{
if (bounceFixEnabled()
&& left == posFullsizeLeft && top == posFullsizeTop
&& width == posFullsizeWidth && height == posFullsizeHeight
&& lastPigWidth[m_decoder] > 0 && lastPigHeight[m_decoder] > 0
&& (lastPigWidth[m_decoder] != posFullsizeWidth || lastPigHeight[m_decoder] != posFullsizeHeight))
{
/* dm9xx: decoder may be in a reset/fullscreen state and ignore a direct
* fullscreen command. Bounce via the stored PIG position to force the
* driver to acknowledge the transition (same trick as setFullsize). */
setPosition(m_decoder, posFullsizeLeft, posFullsizeTop, posFullsizeWidth, posFullsizeHeight);
setPosition(m_decoder, lastPigLeft[m_decoder], lastPigTop[m_decoder], lastPigWidth[m_decoder], lastPigHeight[m_decoder]);
}
setPosition(m_decoder, left, top, width, height);
lastPigLeft[m_decoder] = left;
lastPigTop[m_decoder] = top;
Expand Down
Loading