src/video/gem/SDL_gemevents.c
branchSDL-1.2
changeset 11554 9694b296d6e6
parent 9132 b37013ec80de
child 11555 a3426706e128
     1.1 --- a/src/video/gem/SDL_gemevents.c	Wed Sep 27 20:59:46 2017 +0200
     1.2 +++ b/src/video/gem/SDL_gemevents.c	Sat Sep 30 15:43:28 2017 +0200
     1.3 @@ -24,7 +24,7 @@
     1.4  /*
     1.5   * GEM SDL video driver implementation
     1.6   * inspired from the Dummy SDL driver
     1.7 - * 
     1.8 + *
     1.9   * Patrice Mandin
    1.10   * and work from
    1.11   * Olivier Landemarre, Johan Klockars, Xavier Joubert, Claude Attard
    1.12 @@ -161,7 +161,7 @@
    1.13  		if (gem_currentkeyboard[i] && !gem_previouskeyboard[i])
    1.14  			SDL_PrivateKeyboard(SDL_PRESSED,
    1.15  				SDL_Atari_TranslateKey(i, &keysym, SDL_TRUE));
    1.16 -			
    1.17 +
    1.18  		/* Key unpressed ? */
    1.19  		if (gem_previouskeyboard[i] && !gem_currentkeyboard[i])
    1.20  			SDL_PrivateKeyboard(SDL_RELEASED,
    1.21 @@ -196,7 +196,7 @@
    1.22  			quit=(message[1] == latest_msg_id);
    1.23  			break;
    1.24  		case WM_CLOSED:
    1.25 -		case AP_TERM:    
    1.26 +		case AP_TERM:
    1.27  			SDL_PrivateQuit();
    1.28  			quit=1;
    1.29  			break;
    1.30 @@ -227,7 +227,10 @@
    1.31  			}
    1.32  			/* Update window title */
    1.33  			if (GEM_refresh_name && GEM_icon_name) {
    1.34 -				wind_set(GEM_handle,WF_NAME,(short)(((unsigned long)GEM_icon_name)>>16),(short)(((unsigned long)GEM_icon_name) & 0xffff),0,0);
    1.35 +				wind_set(GEM_handle,WF_NAME,
    1.36 +					(short)(((unsigned long)GEM_icon_name)>>16),
    1.37 +					(short)(((unsigned long)GEM_icon_name) & 0xffff),
    1.38 +					0,0);
    1.39  				GEM_refresh_name = SDL_FALSE;
    1.40  			}
    1.41  			break;
    1.42 @@ -239,7 +242,10 @@
    1.43  				SDL_PrivateAppActive(1, SDL_APPACTIVE);
    1.44  			}
    1.45  			if (GEM_refresh_name && GEM_title_name) {
    1.46 -				wind_set(GEM_handle,WF_NAME,(short)(((unsigned long)GEM_title_name)>>16),(short)(((unsigned long)GEM_title_name) & 0xffff),0,0);
    1.47 +				wind_set(GEM_handle,WF_NAME,
    1.48 +					(short)(((unsigned long)GEM_title_name)>>16),
    1.49 +					(short)(((unsigned long)GEM_title_name) & 0xffff),
    1.50 +					0,0);
    1.51  				GEM_refresh_name = SDL_FALSE;
    1.52  			}
    1.53  			break;
    1.54 @@ -280,7 +286,7 @@
    1.55  			}
    1.56  			break;
    1.57  	}
    1.58 -	
    1.59 +
    1.60  	return quit;
    1.61  }
    1.62  
    1.63 @@ -383,10 +389,10 @@
    1.64  
    1.65  	for (i=0;i<3;i++) {
    1.66  		int curbutton, prevbutton;
    1.67 -		
    1.68 +
    1.69  		curbutton = mb & (1<<i);
    1.70  		prevbutton = prevmb & (1<<i);
    1.71 -	
    1.72 +
    1.73  		if (curbutton && !prevbutton) {
    1.74  			SDL_PrivateMouseButton(SDL_PRESSED, i+1, 0, 0);
    1.75  		}