mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Refactor video configuration
macOS now ignores any resolution coercion. Display resolution on macOS is now configured via macOS System Preferences only.
This commit is contained in:
		
							parent
							
								
									eae506e24a
								
							
						
					
					
						commit
						9378d6b637
					
				
					 1 changed files with 13 additions and 6 deletions
				
			
		
							
								
								
									
										19
									
								
								quickemu
									
										
									
									
									
								
							
							
						
						
									
										19
									
								
								quickemu
									
										
									
									
									
								
							|  | @ -375,13 +375,20 @@ function vm_boot() { | |||
| 
 | ||||
|   echo " - Video:    ${DISPLAY_DEVICE}" | ||||
| 
 | ||||
|   # Allocate VRAM to VGA devices | ||||
|   if [ "${DISPLAY_DEVICE}" == "qxl-vga" ] || [ "${DISPLAY_DEVICE}" == "VGA" ]; then | ||||
|     VIDEO="-device ${DISPLAY_DEVICE},xres=${X_RES},yres=${Y_RES},vgamem_mb=128 ${FULLSCREEN}" | ||||
|   else | ||||
|     VIDEO="-device ${DISPLAY_DEVICE},xres=${X_RES},yres=${Y_RES} ${FULLSCREEN}" | ||||
|   # Build the video configuration | ||||
|   VIDEO="-device ${DISPLAY_DEVICE}" | ||||
| 
 | ||||
|   # Do not try and coerce the display resolution for macOS | ||||
|   if [ "${guest_os}" != "macos" ]; then | ||||
|     VIDEO="${VIDEO},xres=${X_RES},yres=${Y_RES}" | ||||
|   fi | ||||
| 
 | ||||
|   # Allocate VRAM to VGA devices | ||||
|   if [[ "${DISPLAY_DEVICE}" == *"vga"* ]] || [[ "${DISPLAY_DEVICE}" == *"VGA"* ]]; then | ||||
|     VIDEO="${VIDEO},vgamem_mb=128" | ||||
|   fi | ||||
|   VIDEO="${VIDEO} ${FULLSCREEN}" | ||||
| 
 | ||||
|   if [ "${OUTPUT}" == "gtk" ]; then | ||||
|     OUTPUT="${OUTPUT},grab-on-hover=on,zoom-to-fit=off" | ||||
|     # GL is not working with GTK and virtio-vga | ||||
|  | @ -395,7 +402,7 @@ function vm_boot() { | |||
|   fi | ||||
|   echo " - GL:       ${GL^^}" | ||||
| 
 | ||||
|   if [ "${GL}" == "on" ] && [ "${DISPLAY_DEVICE}" == "virtio-vga" ]; then | ||||
|   if [ "${GL}" == "on" ] && [[ "${DISPLAY_DEVICE}" == *"virtio"* ]]; then | ||||
|     DISPLAY_DEVICE="${DISPLAY_DEVICE},virgl=on" | ||||
|     echo " - Virgil3D: ON" | ||||
|   else | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue