mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	citra-qt: Fix displaying RGBA5551 framebuffers.
(not that it matters at the moment, because this code is not used yet)
This commit is contained in:
		
							parent
							
								
									e1144e364e
								
							
						
					
					
						commit
						b03a97e0b8
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -263,6 +263,10 @@ void GraphicsFramebufferWidget::OnUpdate() | |||
|                 u8 g = (value >> 6) & 0x1F; | ||||
|                 u8 b = (value >> 1) & 0x1F; | ||||
|                 u8 a = value & 1; | ||||
|                 r = (r << 3) | (r >> 2); | ||||
|                 g = (g << 3) | (g >> 2); | ||||
|                 b = (b << 3) | (b >> 2); | ||||
|                 a *= 255; | ||||
| 
 | ||||
|                 decoded_image.setPixel(x, y, qRgba(r, g, b, 255/*a*/)); | ||||
|             } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue