changeset 192:e31f8d815aaa

Fixed resuming a paused CD on Win2K (thanks Aragorn)
author Sam Lantinga <slouken@libsdl.org>
date Sun, 23 Sep 2001 20:51:36 +0000
parents c151cfc43c07
children ea31cf2d61af
files docs.html src/cdrom/win32/SDL_syscdrom.c
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/docs.html	Sun Sep 23 20:42:00 2001 +0000
+++ b/docs.html	Sun Sep 23 20:51:36 2001 +0000
@@ -16,6 +16,7 @@
 Major changes since SDL 1.0.0:
 </H2>
 <UL>
+	<LI> 1.2.3: Fixed resuming a paused CD on Win2K (thanks Aragorn)
 	<LI> 1.2.3: Added support for the GNU Pth thread lib (thanks Mandin!)
 	<LI> 1.2.3: Added the Undo key for the Atari keyboard (thanks Mandin!)
 	<LI> 1.2.3: Fixed XVideo on GeForce by using last available adaptor
--- a/src/cdrom/win32/SDL_syscdrom.c	Sun Sep 23 20:42:00 2001 +0000
+++ b/src/cdrom/win32/SDL_syscdrom.c	Sun Sep 23 20:51:36 2001 +0000
@@ -263,7 +263,15 @@
 #endif /* BROKEN_MCI_PAUSE */
 				break;
 			case MCI_MODE_PLAY:
+#ifdef BROKEN_MCI_PAUSE
+				if ( SDL_paused[cdrom->id] ) {
+					status = CD_PAUSED;
+				} else {
+					status = CD_PLAYING;
+				}
+#else
 				status = CD_PLAYING;
+#endif /* BROKEN_MCI_PAUSE */
 				break;
 			case MCI_MODE_PAUSE:
 				status = CD_PAUSED;