mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Refactor DISPLAY_RENDERER configuration
This commit is contained in:
		
							parent
							
								
									eba2d52ba0
								
							
						
					
					
						commit
						1b151955b0
					
				
					 1 changed files with 5 additions and 19 deletions
				
			
		
							
								
								
									
										24
									
								
								quickemu
									
										
									
									
									
								
							
							
						
						
									
										24
									
								
								quickemu
									
										
									
									
									
								
							|  | @ -727,25 +727,11 @@ function vm_boot() { | ||||||
| 
 | 
 | ||||||
|   # Map Quickemu OUTPUT to QEMU -display |   # Map Quickemu OUTPUT to QEMU -display | ||||||
|   case ${OUTPUT} in |   case ${OUTPUT} in | ||||||
|     gtk) |     gtk)        DISPLAY_RENDER="${OUTPUT},grab-on-hover=on,zoom-to-fit=off,gl=${gl}";; | ||||||
|       DISPLAY_RENDER="${OUTPUT},grab-on-hover=on,zoom-to-fit=off" |     none|spice) DISPLAY_RENDER="none";; | ||||||
|       # GL is not working with GTK and virtio-vga |     sdl)        DISPLAY_RENDER="${OUTPUT},gl=${gl}";; | ||||||
|       if [ "${DISPLAY_DEVICE}" == "virtio-vga" ]; then |     spice-app)  DISPLAY_RENDER="${OUTPUT},gl=${gl}";; | ||||||
|         gl="off" |     *)          DISPLAY_RENDER="${OUTPUT}";; | ||||||
|       fi |  | ||||||
|       ;; |  | ||||||
|     none|spice) |  | ||||||
|       DISPLAY_RENDER="none";; |  | ||||||
|     # spice-app has a bug where using spice-app,gl=off seems to enable gl, but |  | ||||||
|     # if the gl param is omitted it works fine. |  | ||||||
|     spice-app) |  | ||||||
|       DISPLAY_RENDER="${OUTPUT}" |  | ||||||
|       if [[ "${gl}" == "on" ]]; then |  | ||||||
|         DISPLAY_RENDER+=",gl=on" |  | ||||||
|       fi |  | ||||||
|       ;; |  | ||||||
|     *) |  | ||||||
|       DISPLAY_RENDER="${OUTPUT},gl=${gl}";; |  | ||||||
|   esac |   esac | ||||||
| 
 | 
 | ||||||
|   # https://www.kraxel.org/blog/2021/05/virtio-gpu-qemu-graphics-update/ |   # https://www.kraxel.org/blog/2021/05/virtio-gpu-qemu-graphics-update/ | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue