1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Remove ddraw clipper stuff

This commit is contained in:
Mathieu Schroeter 2017-02-05 09:52:17 +01:00
parent 641ffc4b97
commit eeef84d4cd
2 changed files with 1 additions and 31 deletions

View File

@ -39,7 +39,6 @@ CPixmap::CPixmap()
m_lpDDSBack = NULL;
m_lpDDSMouse = NULL;
m_lpDDPal = NULL;
m_lpClipper = NULL;
for ( i=0 ; i<MAXIMAGE ; i++ )
{
@ -94,12 +93,6 @@ CPixmap::~CPixmap()
}
}
if ( m_lpClipper != NULL )
{
m_lpClipper->Release();
m_lpClipper = NULL;
}
m_lpDD->Release();
m_lpDD = NULL;
}
@ -155,29 +148,7 @@ bool CPixmap::Create(POINT dim,
}
}
// Create a DirectDrawClipper object. The object enables clipping to the
// window boundaries in the IDirectDrawSurface::Blt function for the
// primary surface.
if ( !m_bFullScreen )
{
ddrval = m_lpDD->CreateClipper(0, &m_lpClipper, NULL);
if ( ddrval != DD_OK )
{
TraceErrorDD(ddrval, "pixmap", 0);
OutputDebug("Can't create clipper\n");
return false;
}
ddrval = m_lpClipper->SetHWnd(0, nullptr);
if ( ddrval != DD_OK )
{
TraceErrorDD(ddrval, "pixmap", 0);
OutputDebug("Can't set clipper window handle\n");
return false;
}
}
return true;
return true;
}
// Libère les bitmaps.

View File

@ -80,7 +80,6 @@ protected:
LPDIRECTDRAWPALETTE m_lpDDPal; // the primary surface palette
SDL_Surface * m_lpSDLSurface[MAXIMAGE];
SDL_Texture * m_lpSDLTexture[MAXIMAGE];
LPDIRECTDRAWCLIPPER m_lpClipper;
PALETTEENTRY m_pal[256]; // sauvegarde palette
PALETTEENTRY m_sysPal[256]; // sauvegarde palette
COLORREF m_colorSurface[2*MAXIMAGE];