mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Fix movie ratio on widescreen
This commit is contained in:
parent
8df65c2a28
commit
7f9761e069
@ -292,7 +292,13 @@ CMovie::Render ()
|
||||
|
||||
// Refresh videotexture and render it
|
||||
Kit_GetVideoData (m_player, m_videoTex);
|
||||
SDL_RenderCopy (g_renderer, m_videoTex, nullptr, nullptr);
|
||||
|
||||
SDL_Rect dstRect;
|
||||
dstRect.x = (LXIMAGE - LXLOGIC) / 2;
|
||||
dstRect.y = 0;
|
||||
dstRect.w = LXLOGIC;
|
||||
dstRect.h = LYLOGIC;
|
||||
SDL_RenderCopy (g_renderer, m_videoTex, nullptr, &dstRect);
|
||||
|
||||
SDL_RenderPresent (g_renderer);
|
||||
CEvent::PushUserEvent (EV_MOVIE_PLAY);
|
||||
|
Loading…
x
Reference in New Issue
Block a user