mirror of
https://github.com/griffi-gh/hUI.git
synced 2024-11-25 08:28:42 -06:00
use usize max as the default font handle (to ensure it always stays invalid)
This commit is contained in:
parent
ff5658f44a
commit
3bcbe0ae6e
|
@ -6,10 +6,9 @@ pub struct FontHandle(pub(crate) usize);
|
||||||
#[cfg(feature = "builtin_font")]
|
#[cfg(feature = "builtin_font")]
|
||||||
pub const BUILTIN_FONT: FontHandle = FontHandle(0);
|
pub const BUILTIN_FONT: FontHandle = FontHandle(0);
|
||||||
|
|
||||||
|
|
||||||
pub(crate) const DEFAULT_FONT: FontHandle = {
|
pub(crate) const DEFAULT_FONT: FontHandle = {
|
||||||
#[cfg(feature = "builtin_font")] { BUILTIN_FONT }
|
#[cfg(feature = "builtin_font")] { BUILTIN_FONT }
|
||||||
#[cfg(not(feature = "builtin_font"))] { FontHandle(0) }
|
#[cfg(not(feature = "builtin_font"))] { FontHandle(usize::MAX) }
|
||||||
};
|
};
|
||||||
|
|
||||||
#[cfg(feature = "builtin_font")]
|
#[cfg(feature = "builtin_font")]
|
||||||
|
|
Loading…
Reference in a new issue