mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	fix for virtio-vga-gl to be usable
See https://github.com/wimpysworld/quickemu/issues/107#issuecomment-951943497
This commit is contained in:
		
							parent
							
								
									70f3d835d4
								
							
						
					
					
						commit
						82ea95918d
					
				
					 1 changed files with 15 additions and 15 deletions
				
			
		
							
								
								
									
										30
									
								
								quickemu
									
										
									
									
									
								
							
							
						
						
									
										30
									
								
								quickemu
									
										
									
									
									
								
							|  | @ -650,21 +650,7 @@ function vm_boot() { | |||
| 
 | ||||
|   echo -n " - Display:  ${OUTPUT^^}, ${DISPLAY_DEVICE}" | ||||
| 
 | ||||
|   # Build the video configuration | ||||
|   VIDEO="-device ${DISPLAY_DEVICE}" | ||||
| 
 | ||||
|   # Try and coerce the display resolution for Linux guests only. | ||||
|   if [ "${guest_os}" == "linux" ]; then | ||||
|     VIDEO="${VIDEO},xres=${X_RES},yres=${Y_RES}" | ||||
|   fi | ||||
| 
 | ||||
|   # Allocate VRAM to VGA devices | ||||
|   if [ "${DISPLAY_DEVICE}" == "qxl-vga" ] || [ "${DISPLAY_DEVICE}" == "VGA" ]; then | ||||
|     VIDEO="${VIDEO},vgamem_mb=128" | ||||
|   fi | ||||
|   VIDEO="${VIDEO} ${FULLSCREEN}" | ||||
| 
 | ||||
|   # Map Quickemu OUTPUT to QEMU -display | ||||
| # Map Quickemu OUTPUT to QEMU -display | ||||
|   case ${OUTPUT} in | ||||
|     gtk) | ||||
|       DISPLAY_RENDER="${OUTPUT},grab-on-hover=on,zoom-to-fit=off" | ||||
|  | @ -690,6 +676,20 @@ function vm_boot() { | |||
|     echo ", GL (${GL}), VirGL (off)" | ||||
|   fi | ||||
| 
 | ||||
|   # Build the video configuration | ||||
|   VIDEO="-device ${DISPLAY_DEVICE}" | ||||
| 
 | ||||
|   # Try and coerce the display resolution for Linux guests only. | ||||
|   if [ "${guest_os}" == "linux" ]; then | ||||
|     VIDEO="${VIDEO},xres=${X_RES},yres=${Y_RES}" | ||||
|   fi | ||||
| 
 | ||||
|   # Allocate VRAM to VGA devices | ||||
|   if [ "${DISPLAY_DEVICE}" == "qxl-vga" ] || [ "${DISPLAY_DEVICE}" == "VGA" ]; then | ||||
|     VIDEO="${VIDEO},vgamem_mb=128" | ||||
|   fi | ||||
|   VIDEO="${VIDEO} ${FULLSCREEN}" | ||||
| 
 | ||||
|   # Set the hostname of the VM | ||||
|   local NET="user,hostname=${VMNAME}" | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue