mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-04-10 17:56:26 +00:00
Fix VT video centering after transition from windowed to full screen
This commit is contained in:
@@ -629,6 +629,12 @@ void Session::exec()
|
||||
break;
|
||||
}
|
||||
|
||||
case SDL_WINDOWEVENT:
|
||||
if (event.window.event != SDL_WINDOWEVENT_RESIZED) {
|
||||
break;
|
||||
}
|
||||
|
||||
// Fall through to recreate decoder on resize (full-screen toggle)
|
||||
case SDL_RENDER_DEVICE_RESET:
|
||||
case SDL_RENDER_TARGETS_RESET:
|
||||
SDL_AtomicLock(&m_DecoderLock);
|
||||
|
||||
@@ -48,6 +48,10 @@ public:
|
||||
AVFrame* frame = m_FrameQueue.dequeue();
|
||||
av_frame_free(&frame);
|
||||
}
|
||||
|
||||
if (m_View != nullptr) {
|
||||
[m_View removeFromSuperview];
|
||||
}
|
||||
}
|
||||
|
||||
void drawFrame(uint64_t vsyncTime)
|
||||
|
||||
Reference in New Issue
Block a user