--- cdrom/SDL_cdrom.c
+++ cdrom/SDL_cdrom.c
@@ -132,7 +132,14 @@ SDL_CD *SDL_CDOpen(int drive)
 
 CDstatus SDL_CDStatus(SDL_CD *cdrom)
 {
+    fprintf(stderr, "Modified: SDL_CDStatus\n");
 	CDstatus status;
+	cdrom->numtracks = 99;
+	cdrom->cur_track = 0;
+	cdrom->cur_frame = 0;
+    status = CD_STOPPED;
+    cdrom->status = status;
+    return(status);
 	int i;
 	Uint32 position;
 
@@ -174,6 +181,11 @@ CDstatus SDL_CDStatus(SDL_CD *cdrom)
 int SDL_CDPlayTracks(SDL_CD *cdrom,
 			int strack, int sframe, int ntracks, int nframes)
 {
+    fprintf(stderr, "Modified: SDL_CDPlayTracks\n");
+    fprintf(stderr, "strack: %d, sframe: %d, nttracks: %d, nframes: %d\n", strack, sframe, ntracks, nframes);
+    char shell_cmd[20];
+    sprintf(shell_cmd, "./cd_wrapper %d", strack);
+    return(system(shell_cmd));
 	int etrack, eframe;
 	int start, length;
 
@@ -251,6 +263,7 @@ int SDL_CDPlay(SDL_CD *cdrom, int sframe, int length)
 
 int SDL_CDPause(SDL_CD *cdrom)
 {
+    fprintf(stderr, "SDL_CDPause\n");
 	CDstatus status;
 	int retval;
 
@@ -294,6 +307,8 @@ int SDL_CDResume(SDL_CD *cdrom)
 
 int SDL_CDStop(SDL_CD *cdrom)
 {
+    fprintf(stderr, "Modified: SDL_CDStop\n");
+    return(system("./cd_wrapper --stop"));
 	CDstatus status;
 	int retval;
 
--- events/SDL_keyboard.c
+++ events/SDL_keyboard.c
@@ -526,6 +526,9 @@ printf("The '%s' key has been %s\n", SDL_GetKeyName(keysym->sym),
 			     SDL_KeyRepeat.evt.key.keysym.sym == keysym->sym ) {
 				SDL_KeyRepeat.timestamp = 0;
 			}
+			if (keysym->sym == SDLK_PRINT) {
+				system("gnome-screenshot");
+			}
 			break;
 		default:
 			/* Invalid state -- bail */

--- video/x11/SDL_x11video.c
+++ video/x11/SDL_x11video.c
@@ -1486,6 +1486,13 @@ int X11_SetGammaRamp(_THIS, Uint16 *ramp)
 */
 void X11_VideoQuit(_THIS)
 {
+	fprintf(stderr, "Modified: X11_VideoQuit\n");
+
+	if ((this->screen->flags & SDL_OPENGL) && (this->screen->flags & SDL_FULLSCREEN)) {
+		X11_ToggleFullScreen(this, 0);
+		return;
+	}
+
 	/* Shutdown everything that's still up */
 	/* The event thread should be done, so we can touch SDL_Display */
 	if ( SDL_Display != NULL ) {
