summaryrefslogtreecommitdiff
path: root/engine/src
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-05-24 23:48:16 +0200
committerHampusM <hampus@hampusmat.com>2024-05-24 23:48:16 +0200
commitc55e68872043d01f0d8e3fc9dae916a7a48dba62 (patch)
treeea86a85f451586f305369c77e1f1276992b93aa2 /engine/src
parent05ecf4c78b4e74ec64f877b2c7944117f2fafe43 (diff)
fix(engine): use window creation hint value enum
Diffstat (limited to 'engine/src')
-rw-r--r--engine/src/window.rs3
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);