fix missing renames
This commit is contained in:
		
							parent
							
								
									323ba6128e
								
							
						
					
					
						commit
						5a849a87c7
					
				
					 6 changed files with 53 additions and 63 deletions
				
			
		| 
						 | 
				
			
			@ -11,7 +11,7 @@ use std::ptr::NonNull;
 | 
			
		|||
 | 
			
		||||
wrap_grid!(Bitmap, bool);
 | 
			
		||||
 | 
			
		||||
wrap_functions!(bitmap;
 | 
			
		||||
wrap_functions!(associate Bitmap;
 | 
			
		||||
    /// Creates a new [Bitmap] with the specified dimensions.
 | 
			
		||||
    ///
 | 
			
		||||
    /// # Arguments
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -10,28 +10,19 @@ use std::ptr::NonNull;
 | 
			
		|||
 | 
			
		||||
wrap_grid!(Cp437Grid, u8);
 | 
			
		||||
 | 
			
		||||
wrap_functions!(cp437grid;
 | 
			
		||||
 | 
			
		||||
wrap_functions!(associate Cp437Grid;
 | 
			
		||||
    /// Creates a new [Cp437Grid] with the specified dimensions.
 | 
			
		||||
    ///
 | 
			
		||||
    /// returns: [Cp437Grid] initialized to 0.
 | 
			
		||||
    fn new(
 | 
			
		||||
        width: usize,
 | 
			
		||||
        height: usize,
 | 
			
		||||
    ) -> NonNull<Cp437Grid> {
 | 
			
		||||
    fn new(width: usize, height: usize) -> NonNull<Cp437Grid> {
 | 
			
		||||
        heap_move_nonnull(Cp437Grid::new(width, height))
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /// Loads a [Cp437Grid] with the specified dimensions from the provided data.
 | 
			
		||||
    fn load(
 | 
			
		||||
        width: usize,
 | 
			
		||||
        height: usize,
 | 
			
		||||
        data: ByteSlice,
 | 
			
		||||
    ) -> *mut Cp437Grid {
 | 
			
		||||
    fn load(width: usize, height: usize, data: ByteSlice) -> *mut Cp437Grid {
 | 
			
		||||
        let data = unsafe { data.as_slice() };
 | 
			
		||||
        heap_move_some(Cp437Grid::load(width, height, data))
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
);
 | 
			
		||||
 | 
			
		||||
wrap_methods!(Cp437Grid;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue