unsafe extern "C" fn expand(uptr: *mut c_void) -> c_int {
        log::trace!("FontTextureImpl::expand");

        let me = &mut *(uptr as *const _ as *mut Self);

        // Self::create(uptr, (me.w * 2) as i32, (me.h * 2) as i32);

        if let Err(why) = me.stash.expand_atlas(me.w * 2, me.h * 2) {
            log::warn!("fontstash: error on resize: {:?}", why);
            false as c_int // fail
        } else {
            true as c_int // success
        }
    }
/// Try to double the texture size when the atlas is full
Try to double the texture size when the atlas is full
Try to double the texture size when the atlas is full
unsafe extern "C" fn expand(uptr: *mut c_void) -> c_int {
        log::trace!("FontTextureImpl::expand");
        let me = &mut *(uptr as *const _ as *mut Self);
        // Self::create(uptr, (me.w * 2) as i32, (me.h * 2) as i32);
        if let Err(why) = me.stash.expand_atlas(me.w * 2, me.h * 2) {
            log::warn!("fontstash: error on resize: {:?}", why);
            false as c_int // fail
        } else {
            true as c_int // success
        }
    }
unsafe extern " " fn expand ( uptr : * mut c_void ) -> c_int { log :: trace ! ( " " ) ; let me = & mut * ( uptr as * const _ as * mut Self ) ; // Self::create(uptr, (me.w * 2) as i32, (me.h * 2) as i32); if let Err ( why ) = me . stash . expand_atlas ( me . w * 2 , me . h * 2 ) { log :: warn ! ( " " why ) ; false as c_int // fail } else { true as c_int // success } }
Try to double the texture size when the atlas is full
Try to double the texture size when the atlas is full
uptr
*mut c_void
uptr
*mut c_void