src/video/windx5/SDL_dx5video.c
changeset 901 fd4a6847ddc0
parent 833 31fa08b36380
child 971 96671ebc50a4
     1.1 --- a/src/video/windx5/SDL_dx5video.c	Thu May 27 22:57:30 2004 +0000
     1.2 +++ b/src/video/windx5/SDL_dx5video.c	Fri Jun 25 05:24:50 2004 +0000
     1.3 @@ -1323,11 +1323,7 @@
     1.4  		SetDDerror("DirectDrawSurface::QueryInterface", result);
     1.5  		return(NULL);
     1.6  	}
     1.7 -	result = IDirectDrawSurface_Release(dd_surface1);
     1.8 -	if ( result != DD_OK ) {
     1.9 -		SetDDerror("DirectDrawSurface::Release", result);
    1.10 -		return(NULL);
    1.11 -	}
    1.12 +	IDirectDrawSurface_Release(dd_surface1);
    1.13  
    1.14  	/* Get the format of the primary DirectDraw surface */
    1.15  	memset(&ddsd, 0, sizeof(ddsd));
    1.16 @@ -1335,7 +1331,7 @@
    1.17  	ddsd.dwFlags = DDSD_PIXELFORMAT|DDSD_CAPS;
    1.18  	result = IDirectDrawSurface3_GetSurfaceDesc(SDL_primary, &ddsd);
    1.19  	if ( result != DD_OK ) {
    1.20 -		SetDDerror("DirectDrawSurface::Release", result);
    1.21 +		SetDDerror("DirectDrawSurface::GetSurfaceDesc", result);
    1.22  		return(NULL);
    1.23  	}
    1.24  	if ( ! (ddsd.ddpfPixelFormat.dwFlags&DDPF_RGB) ) {