mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Cosmetic: fix style
This commit is contained in:
parent
f07c5c9543
commit
f6334f8701
@ -99,12 +99,12 @@ bool CMovie::fileOpenMovie (RECT rect, const char *pFilename)
|
|||||||
SDL_PauseAudioDevice (m_audioDev, 0);
|
SDL_PauseAudioDevice (m_audioDev, 0);
|
||||||
|
|
||||||
m_videoTex = SDL_CreateTexture (
|
m_videoTex = SDL_CreateTexture (
|
||||||
g_renderer,
|
g_renderer,
|
||||||
pinfo->video.format,
|
pinfo->video.format,
|
||||||
SDL_TEXTUREACCESS_STATIC,
|
SDL_TEXTUREACCESS_STATIC,
|
||||||
pinfo->video.width,
|
pinfo->video.width,
|
||||||
pinfo->video.height
|
pinfo->video.height
|
||||||
);
|
);
|
||||||
if (m_videoTex == nullptr)
|
if (m_videoTex == nullptr)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
@ -136,9 +136,9 @@ void CMovie::playMovie()
|
|||||||
|
|
||||||
CMovie::CMovie()
|
CMovie::CMovie()
|
||||||
{
|
{
|
||||||
m_bEnable = false;
|
m_bEnable = false;
|
||||||
m_fPlaying = false;
|
m_fPlaying = false;
|
||||||
m_fMovieOpen = false;
|
m_fMovieOpen = false;
|
||||||
|
|
||||||
m_movie = nullptr;
|
m_movie = nullptr;
|
||||||
m_player = nullptr;
|
m_player = nullptr;
|
||||||
@ -212,6 +212,7 @@ void CMovie::Stop()
|
|||||||
{
|
{
|
||||||
if (!m_bEnable)
|
if (!m_bEnable)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
fileCloseMovie();
|
fileCloseMovie();
|
||||||
SDL_RenderSetLogicalSize (g_renderer, LXIMAGE, LYIMAGE);
|
SDL_RenderSetLogicalSize (g_renderer, LXIMAGE, LYIMAGE);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user