diff options
author | HampusM <hampus@hampusmat.com> | 2024-05-24 23:48:16 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-05-24 23:48:16 +0200 |
commit | c55e68872043d01f0d8e3fc9dae916a7a48dba62 (patch) | |
tree | ea86a85f451586f305369c77e1f1276992b93aa2 | |
parent | 05ecf4c78b4e74ec64f877b2c7944117f2fafe43 (diff) |
fix(engine): use window creation hint value enum
-rw-r--r-- | engine/src/window.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/src/window.rs b/engine/src/window.rs index 0d0bac4..294d9ed 100644 --- a/engine/src/window.rs +++ b/engine/src/window.rs @@ -16,6 +16,7 @@ mod reexports pub use glfw::window::{ CursorMode, Hint as CreationHint, + HintValue as CreationHintValue, InputMode, Key, KeyModifiers, @@ -188,7 +189,7 @@ pub struct Builder impl Builder { #[must_use] - pub fn creation_hint(mut self, hint: CreationHint, value: i32) -> Self + pub fn creation_hint(mut self, hint: CreationHint, value: CreationHintValue) -> Self { self.inner = self.inner.hint(hint, value); |