mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 09:22:44 +00:00 
			
		
		
		
	LibGfx: Use ErrorOr<T> for Bitmap::rotated()
This commit is contained in:
		
							parent
							
								
									2da4cfcc80
								
							
						
					
					
						commit
						69c4614a94
					
				
					 5 changed files with 11 additions and 10 deletions
				
			
		|  | @ -152,10 +152,10 @@ RefPtr<Gfx::Bitmap> PDFViewer::render_page(const PDF::Page& page) | |||
|     if (page.rotate != 0) { | ||||
|         int rotation_count = (page.rotate / 90) % 4; | ||||
|         if (rotation_count == 3) { | ||||
|             bitmap = bitmap->rotated(Gfx::RotationDirection::CounterClockwise); | ||||
|             bitmap = bitmap->rotated(Gfx::RotationDirection::CounterClockwise).release_value_but_fixme_should_propagate_errors(); | ||||
|         } else { | ||||
|             for (int i = 0; i < rotation_count; i++) | ||||
|                 bitmap = bitmap->rotated(Gfx::RotationDirection::Clockwise); | ||||
|                 bitmap = bitmap->rotated(Gfx::RotationDirection::Clockwise).release_value_but_fixme_should_propagate_errors(); | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling