mirror of
				https://github.com/libsdl-org/SDL.git
				synced 2025-11-04 09:44:35 +00:00 
			
		
		
		
	fixed SENSOR_LANDSCAPE and SENSOR_PORTRAIT mode false nativeResume bug
This commit is contained in:
		@@ -1169,12 +1169,12 @@ class SDLSurface extends SurfaceView implements SurfaceHolder.Callback,
 | 
				
			|||||||
        {
 | 
					        {
 | 
				
			||||||
            // Accept any
 | 
					            // Accept any
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        else if (requestedOrientation == ActivityInfo.SCREEN_ORIENTATION_PORTRAIT)
 | 
					        else if (requestedOrientation == ActivityInfo.SCREEN_ORIENTATION_PORTRAIT || requestedOrientation == ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            if (mWidth > mHeight) {
 | 
					            if (mWidth > mHeight) {
 | 
				
			||||||
               skip = true;
 | 
					               skip = true;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        } else if (requestedOrientation == ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) {
 | 
					        } else if (requestedOrientation == ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE || requestedOrientation == ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE) {
 | 
				
			||||||
            if (mWidth < mHeight) {
 | 
					            if (mWidth < mHeight) {
 | 
				
			||||||
               skip = true;
 | 
					               skip = true;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user