mirror of
				https://git.proxmox.com/git/qemu
				synced 2025-10-31 07:39:44 +00:00 
			
		
		
		
	Fix SDL problems with BGR displays (Avi Kivity)
revert qemu's sdl.c rev 1.40 this fixes problems with bgr displays. Signed-off-by: Avi Kivity <avi@qumranet.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4925 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
		
							parent
							
								
									bd54b86394
								
							
						
					
					
						commit
						c7bd7bec8c
					
				
							
								
								
									
										2
									
								
								sdl.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								sdl.c
									
									
									
									
									
								
							| @ -89,7 +89,7 @@ static void sdl_resize(DisplayState *ds, int w, int h) | ||||
|     ds->data = screen->pixels; | ||||
|     ds->linesize = screen->pitch; | ||||
|     ds->depth = screen->format->BitsPerPixel; | ||||
|     if (screen->format->Bshift > screen->format->Rshift) { | ||||
|     if (ds->depth == 32 && screen->format->Rshift == 0) { | ||||
|         ds->bgr = 1; | ||||
|     } else { | ||||
|         ds->bgr = 0; | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 aliguori
						aliguori