mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 05:31:01 +00:00 
			
		
		
		
	Update the editor display scale based on the device's scaled density
This commit is contained in:
		
							parent
							
								
									10d9e47949
								
							
						
					
					
						commit
						8eabf77f54
					
				
					 8 changed files with 44 additions and 2 deletions
				
			
		|  | @ -107,4 +107,18 @@ public class GodotEditor extends FullScreenGodotApp { | |||
| 		Intent newInstance = new Intent(this, targetClass).putExtra(COMMAND_LINE_PARAMS, args); | ||||
| 		startActivity(newInstance); | ||||
| 	} | ||||
| 
 | ||||
| 	@Override | ||||
| 	public void setRequestedOrientation(int requestedOrientation) { | ||||
| 		if (!overrideOrientationRequest()) { | ||||
| 			super.setRequestedOrientation(requestedOrientation); | ||||
| 		} | ||||
| 	} | ||||
| 
 | ||||
| 	/** | ||||
| 	 * The Godot Android Editor sets its own orientation via its AndroidManifest | ||||
| 	 */ | ||||
| 	protected boolean overrideOrientationRequest() { | ||||
| 		return true; | ||||
| 	} | ||||
| } | ||||
|  |  | |||
|  | @ -34,4 +34,7 @@ package org.godotengine.editor; | |||
|  * Drives the 'run project' window of the Godot Editor. | ||||
|  */ | ||||
| public class GodotGame extends GodotEditor { | ||||
| 	protected boolean overrideOrientationRequest() { | ||||
| 		return false; | ||||
| 	} | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Fredia Huya-Kouadio
						Fredia Huya-Kouadio