mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 05:10:03 -04:00
Merge branch 'emilk:master' into cache_galley_lines
This commit is contained in:
@@ -75,7 +75,7 @@ mod mutex_impl {
|
||||
// Detect if we are recursively taking out a lock on this mutex.
|
||||
|
||||
// use a pointer to the inner data as an id for this lock
|
||||
let ptr = (&self.0 as *const parking_lot::Mutex<_>).cast::<()>();
|
||||
let ptr = std::ptr::from_ref::<parking_lot::Mutex<_>>(&self.0).cast::<()>();
|
||||
|
||||
// Store it in thread local storage while we have a lock guard taken out
|
||||
HELD_LOCKS_TLS.with(|held_locks| {
|
||||
|
||||
@@ -648,10 +648,10 @@ pub struct Glyph {
|
||||
/// The row/line height of this font.
|
||||
pub font_height: f32,
|
||||
|
||||
/// The ascent of the sub-font within the font ("FontImpl").
|
||||
/// The ascent of the sub-font within the font (`FontImpl`).
|
||||
pub font_impl_ascent: f32,
|
||||
|
||||
/// The row/line height of the sub-font within the font ("FontImpl").
|
||||
/// The row/line height of the sub-font within the font (`FontImpl`).
|
||||
pub font_impl_height: f32,
|
||||
|
||||
/// Position and size of the glyph in the font texture, in texels.
|
||||
|
||||
Reference in New Issue
Block a user