mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
Compile fix for non XF86-DGA systems.
This commit is contained in:
parent
f1f830ce38
commit
f361dea170
1 changed files with 12 additions and 2 deletions
|
@ -454,7 +454,7 @@ static HRESULT WINAPI Xlib_IDirectDrawSurface3_SetPalette(
|
|||
LPDIRECTDRAWSURFACE3 this,LPDIRECTDRAWPALETTE pal
|
||||
) {
|
||||
TRACE(ddraw,"(%p)->SetPalette(%p)\n",this,pal);
|
||||
|
||||
#ifdef HAVE_LIBXXF86DGA
|
||||
/* According to spec, we are only supposed to
|
||||
* AddRef if this is not the same palette.
|
||||
*/
|
||||
|
@ -481,13 +481,18 @@ static HRESULT WINAPI Xlib_IDirectDrawSurface3_SetPalette(
|
|||
}
|
||||
|
||||
return 0;
|
||||
#else /* defined(HAVE_LIBXXF86DGA) */
|
||||
return E_UNEXPECTED;
|
||||
#endif /* defined(HAVE_LIBXXF86DGA) */
|
||||
|
||||
|
||||
}
|
||||
|
||||
static HRESULT WINAPI DGA_IDirectDrawSurface3_SetPalette(
|
||||
LPDIRECTDRAWSURFACE3 this,LPDIRECTDRAWPALETTE pal
|
||||
) {
|
||||
TRACE(ddraw,"(%p)->SetPalette(%p)\n",this,pal);
|
||||
|
||||
#ifdef HAVE_LIBXXF86DGA
|
||||
/* According to spec, we are only supposed to
|
||||
* AddRef if this is not the same palette.
|
||||
*/
|
||||
|
@ -509,6 +514,11 @@ static HRESULT WINAPI DGA_IDirectDrawSurface3_SetPalette(
|
|||
TSXF86DGAInstallColormap(display,DefaultScreen(display),this->s.palette->cm);
|
||||
}
|
||||
return 0;
|
||||
#else /* defined(HAVE_LIBXXF86DGA) */
|
||||
return E_UNEXPECTED;
|
||||
#endif /* defined(HAVE_LIBXXF86DGA) */
|
||||
|
||||
|
||||
}
|
||||
|
||||
static HRESULT WINAPI IDirectDrawSurface3_Blt(
|
||||
|
|
Loading…
Reference in a new issue