Fixed resuming a paused CD on Win2K (thanks Aragorn)
authorSam Lantinga <slouken@libsdl.org>
Sun, 23 Sep 2001 20:51:36 +0000
changeset 192e31f8d815aaa
parent 191 c151cfc43c07
child 193 ea31cf2d61af
Fixed resuming a paused CD on Win2K (thanks Aragorn)
docs.html
src/cdrom/win32/SDL_syscdrom.c
     1.1 --- a/docs.html	Sun Sep 23 20:42:00 2001 +0000
     1.2 +++ b/docs.html	Sun Sep 23 20:51:36 2001 +0000
     1.3 @@ -16,6 +16,7 @@
     1.4  Major changes since SDL 1.0.0:
     1.5  </H2>
     1.6  <UL>
     1.7 +	<LI> 1.2.3: Fixed resuming a paused CD on Win2K (thanks Aragorn)
     1.8  	<LI> 1.2.3: Added support for the GNU Pth thread lib (thanks Mandin!)
     1.9  	<LI> 1.2.3: Added the Undo key for the Atari keyboard (thanks Mandin!)
    1.10  	<LI> 1.2.3: Fixed XVideo on GeForce by using last available adaptor
     2.1 --- a/src/cdrom/win32/SDL_syscdrom.c	Sun Sep 23 20:42:00 2001 +0000
     2.2 +++ b/src/cdrom/win32/SDL_syscdrom.c	Sun Sep 23 20:51:36 2001 +0000
     2.3 @@ -263,7 +263,15 @@
     2.4  #endif /* BROKEN_MCI_PAUSE */
     2.5  				break;
     2.6  			case MCI_MODE_PLAY:
     2.7 +#ifdef BROKEN_MCI_PAUSE
     2.8 +				if ( SDL_paused[cdrom->id] ) {
     2.9 +					status = CD_PAUSED;
    2.10 +				} else {
    2.11 +					status = CD_PLAYING;
    2.12 +				}
    2.13 +#else
    2.14  				status = CD_PLAYING;
    2.15 +#endif /* BROKEN_MCI_PAUSE */
    2.16  				break;
    2.17  			case MCI_MODE_PAUSE:
    2.18  				status = CD_PAUSED;