mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	Fix compile errors
This commit is contained in:
		
							parent
							
								
									7a3e126a4f
								
							
						
					
					
						commit
						71e1d6e25d
					
				
					 13 changed files with 20 additions and 12 deletions
				
			
		|  | @ -2,6 +2,7 @@ | |||
| // Licensed under GPLv2 or any later version
 | ||||
| // Refer to the license.txt file included.
 | ||||
| 
 | ||||
| #include <algorithm> | ||||
| #include <memory> | ||||
| #include <string> | ||||
| #include <tuple> | ||||
|  | @ -534,17 +535,17 @@ bool RasterizerOpenGL::Draw(bool accelerate, bool is_indexed) { | |||
| 
 | ||||
|     MathUtil::Rectangle<u32> draw_rect{ | ||||
|         static_cast<u32>(std::clamp<s32>(static_cast<s32>(surfaces_rect.left) + | ||||
|                                                   viewport_rect_unscaled.left * res_scale, | ||||
|                                               surfaces_rect.left, surfaces_rect.right)), // Left
 | ||||
|                                              viewport_rect_unscaled.left * res_scale, | ||||
|                                          surfaces_rect.left, surfaces_rect.right)), // Left
 | ||||
|         static_cast<u32>(std::clamp<s32>(static_cast<s32>(surfaces_rect.bottom) + | ||||
|                                                   viewport_rect_unscaled.top * res_scale, | ||||
|                                               surfaces_rect.bottom, surfaces_rect.top)), // Top
 | ||||
|                                              viewport_rect_unscaled.top * res_scale, | ||||
|                                          surfaces_rect.bottom, surfaces_rect.top)), // Top
 | ||||
|         static_cast<u32>(std::clamp<s32>(static_cast<s32>(surfaces_rect.left) + | ||||
|                                                   viewport_rect_unscaled.right * res_scale, | ||||
|                                               surfaces_rect.left, surfaces_rect.right)), // Right
 | ||||
|                                              viewport_rect_unscaled.right * res_scale, | ||||
|                                          surfaces_rect.left, surfaces_rect.right)), // Right
 | ||||
|         static_cast<u32>(std::clamp<s32>(static_cast<s32>(surfaces_rect.bottom) + | ||||
|                                                   viewport_rect_unscaled.bottom * res_scale, | ||||
|                                               surfaces_rect.bottom, surfaces_rect.top))}; // Bottom
 | ||||
|                                              viewport_rect_unscaled.bottom * res_scale, | ||||
|                                          surfaces_rect.bottom, surfaces_rect.top))}; // Bottom
 | ||||
| 
 | ||||
|     // Bind the framebuffer surfaces
 | ||||
|     state.draw.draw_framebuffer = framebuffer.handle; | ||||
|  |  | |||
|  | @ -3,7 +3,6 @@ | |||
| // Refer to the license.txt file included.
 | ||||
| 
 | ||||
| #include <algorithm> | ||||
| 
 | ||||
| #include "common/assert.h" | ||||
| #include "common/color.h" | ||||
| #include "common/common_types.h" | ||||
|  |  | |||
|  | @ -2,6 +2,7 @@ | |||
| // Licensed under GPLv2 or any later version
 | ||||
| // Refer to the license.txt file included.
 | ||||
| 
 | ||||
| #include <algorithm> | ||||
| #include "video_core/swrasterizer/lighting.h" | ||||
| 
 | ||||
| namespace Pica { | ||||
|  |  | |||
|  | @ -3,7 +3,6 @@ | |||
| // Refer to the license.txt file included.
 | ||||
| 
 | ||||
| #include <algorithm> | ||||
| 
 | ||||
| #include "common/assert.h" | ||||
| #include "common/common_types.h" | ||||
| #include "common/vector_math.h" | ||||
|  |  | |||
|  | @ -2,6 +2,7 @@ | |||
| // Licensed under GPLv2 or any later version
 | ||||
| // Refer to the license.txt file included.
 | ||||
| 
 | ||||
| #include <algorithm> | ||||
| #include <array> | ||||
| #include "common/bit_field.h" | ||||
| #include "common/color.h" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue