mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Fix crash by removing ddraw function
This commit is contained in:
parent
ae1ea95d5e
commit
bc73c2fe7a
@ -4041,7 +4041,6 @@ bool CEvent::StartMovie(char *pFilename)
|
|||||||
void CEvent::StopMovie()
|
void CEvent::StopMovie()
|
||||||
{
|
{
|
||||||
m_pMovie->Stop();
|
m_pMovie->Stop();
|
||||||
m_pPixmap->RestorePalette();
|
|
||||||
m_pSound->Flush(SOUND_MOVIE);
|
m_pSound->Flush(SOUND_MOVIE);
|
||||||
// m_pSound->RestartMusic();
|
// m_pSound->RestartMusic();
|
||||||
ChangePhase(m_phase);
|
ChangePhase(m_phase);
|
||||||
|
12
pixmap.cpp
12
pixmap.cpp
@ -389,18 +389,6 @@ bool CPixmap::SavePalette()
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Restitue toute la palette de couleurs.
|
|
||||||
|
|
||||||
bool CPixmap::RestorePalette()
|
|
||||||
{
|
|
||||||
HRESULT ddrval;
|
|
||||||
|
|
||||||
ddrval = m_lpDDPal->SetEntries(0, 0, 256, m_pal);
|
|
||||||
|
|
||||||
if ( ddrval != DD_OK ) return false;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Cherche une couleur dans la palette principale.
|
// Cherche une couleur dans la palette principale.
|
||||||
// En mode plein écran, il faut chercher dans la palette
|
// En mode plein écran, il faut chercher dans la palette
|
||||||
// correspondant aux images (obtenue avec SavePalette),
|
// correspondant aux images (obtenue avec SavePalette),
|
||||||
|
1
pixmap.h
1
pixmap.h
@ -26,7 +26,6 @@ public:
|
|||||||
void Fill(RECT rect, COLORREF color);
|
void Fill(RECT rect, COLORREF color);
|
||||||
|
|
||||||
bool SavePalette();
|
bool SavePalette();
|
||||||
bool RestorePalette();
|
|
||||||
int SearchColor(int red, int green, int blue);
|
int SearchColor(int red, int green, int blue);
|
||||||
bool Cache(int channel, char *pFilename, POINT totalDim, POINT iconDim, bool bUsePalette);
|
bool Cache(int channel, char *pFilename, POINT totalDim, POINT iconDim, bool bUsePalette);
|
||||||
bool Cache(int channel, char *pFilename, POINT totalDim, bool bUsePalette);
|
bool Cache(int channel, char *pFilename, POINT totalDim, bool bUsePalette);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user