From c55e68872043d01f0d8e3fc9dae916a7a48dba62 Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 24 May 2024 23:48:16 +0200 Subject: fix(engine): use window creation hint value enum --- engine/src/window.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engine/src') 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); -- cgit v1.2.3-18-g5258