Fix PL110 framebuffer byteswapping in 32bpp mode.
Signed-off-by: Paul Brook <paul@codesourcery.com>
This commit is contained in:
		
							parent
							
								
									72af917088
								
							
						
					
					
						commit
						399a4e2106
					
				@ -282,7 +282,7 @@ static void glue(pl110_draw_line32_,NAME)(void *opaque, uint8_t *d, const uint8_
 | 
				
			|||||||
#define LSB b
 | 
					#define LSB b
 | 
				
			||||||
#define MSB r
 | 
					#define MSB r
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
#ifdef SWAP_WORDS
 | 
					#ifndef SWAP_WORDS
 | 
				
			||||||
        LSB = data & 0xff;
 | 
					        LSB = data & 0xff;
 | 
				
			||||||
        g = (data >> 8) & 0xff;
 | 
					        g = (data >> 8) & 0xff;
 | 
				
			||||||
        MSB = (data >> 16) & 0xff;
 | 
					        MSB = (data >> 16) & 0xff;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user