src/video/windx5/SDL_dx5video.c
changeset 443 778b970cec12
parent 442 b37ce4813ad4
child 448 323c766f5a46
     1.1 --- a/src/video/windx5/SDL_dx5video.c	Sat Aug 17 19:17:18 2002 +0000
     1.2 +++ b/src/video/windx5/SDL_dx5video.c	Sat Aug 17 19:36:43 2002 +0000
     1.3 @@ -1368,7 +1368,15 @@
     1.4  			}
     1.5  		}
     1.6  		dd_surface3 = NULL;
     1.7 +#if 0 /* FIXME: enable this when SDL consistently reports lost surfaces */
     1.8 +		if ( (flags & SDL_HWSURFACE) == SDL_HWSURFACE ) {
     1.9 +			video->flags |= SDL_HWSURFACE;
    1.10 +		} else {
    1.11 +			video->flags |= SDL_SWSURFACE;
    1.12 +		}
    1.13 +#else
    1.14  		video->flags |= SDL_SWSURFACE;
    1.15 +#endif
    1.16  		if ( (flags & SDL_RESIZABLE) && !(flags & SDL_NOFRAME) ) {
    1.17  			video->flags |= SDL_RESIZABLE;
    1.18  		}
    1.19 @@ -1587,7 +1595,7 @@
    1.20  	memset(&ddsd, 0, sizeof(ddsd));
    1.21  	ddsd.dwSize = sizeof(ddsd);
    1.22  	result = IDirectDrawSurface3_Lock(dd_surface3, NULL,
    1.23 -					&ddsd, DDLOCK_NOSYSLOCK, NULL);
    1.24 +		&ddsd, (DDLOCK_NOSYSLOCK|DDLOCK_WAIT), NULL);
    1.25  	if ( result != DD_OK ) {
    1.26  		SetDDerror("DirectDrawSurface3::Lock", result);
    1.27  		goto error_end;