mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	Pica/DebugUtils: Fix two warnings.
This commit is contained in:
		
							parent
							
								
									6e275778c9
								
							
						
					
					
						commit
						88e9efe4b8
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -346,7 +346,7 @@ const Math::Vec4<u8> LookupTexture(const u8* source, int x, int y, const Texture | ||||||
|     case Regs::TextureFormat::RGBA8: |     case Regs::TextureFormat::RGBA8: | ||||||
|     { |     { | ||||||
|         const u8* source_ptr = source + coarse_x * block_height * 4 + coarse_y * info.stride + texel_index_within_tile * 4; |         const u8* source_ptr = source + coarse_x * block_height * 4 + coarse_y * info.stride + texel_index_within_tile * 4; | ||||||
|         return { source_ptr[3], source_ptr[2], source_ptr[1], disable_alpha ? 255 : source_ptr[0] }; |         return { source_ptr[3], source_ptr[2], source_ptr[1], disable_alpha ? (u8)255 : source_ptr[0] }; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     case Regs::TextureFormat::RGB8: |     case Regs::TextureFormat::RGB8: | ||||||
|  | @ -385,7 +385,7 @@ const Math::Vec4<u8> LookupTexture(const u8* source, int x, int y, const Texture | ||||||
|         g = (g << 4) | g; |         g = (g << 4) | g; | ||||||
|         b = (b << 4) | b; |         b = (b << 4) | b; | ||||||
|         a = (a << 4) | a; |         a = (a << 4) | a; | ||||||
|         return { r, g, b, disable_alpha ? 255 : a }; |         return { r, g, b, disable_alpha ? (u8)255 : a }; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     case Regs::TextureFormat::IA8: |     case Regs::TextureFormat::IA8: | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue