aboutsummaryrefslogtreecommitdiff
path: root/src/utils.rs
diff options
context:
space:
mode:
authorMatthew Collins <[email protected]>2018-05-05 15:46:12 +0100
committerMatthew Collins <[email protected]>2018-05-05 15:46:12 +0100
commit5ef3f6e17cd14d452cfcdbb8a30abf61e513e84d (patch)
treee667ed1dccc3d3ac0df83e8c66b76dd5dc0771e8 /src/utils.rs
parentMinor bump due to slight mistake with last publish (diff)
downloadsteamworks-rs-5ef3f6e17cd14d452cfcdbb8a30abf61e513e84d.tar.xz
steamworks-rs-5ef3f6e17cd14d452cfcdbb8a30abf61e513e84d.zip
Rework how the sys crate is generated
Due to packing issues with steam's structs we use wrapper methods to access the fields and create the structs.
Diffstat (limited to 'src/utils.rs')
-rw-r--r--src/utils.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utils.rs b/src/utils.rs
index 5c5ae10..43e167b 100644
--- a/src/utils.rs
+++ b/src/utils.rs
@@ -39,10 +39,10 @@ impl <Manager> Utils<Manager> {
pub fn set_overlay_notification_position(&self, position: NotificationPosition) {
unsafe {
let position = match position {
- NotificationPosition::TopLeft => sys::NotificationPosition::TopLeft,
- NotificationPosition::TopRight => sys::NotificationPosition::TopRight,
- NotificationPosition::BottomLeft => sys::NotificationPosition::BottomLeft,
- NotificationPosition::BottomRight => sys::NotificationPosition::BottomRight,
+ NotificationPosition::TopLeft => sys::ENotificationPosition_k_EPositionTopLeft,
+ NotificationPosition::TopRight => sys::ENotificationPosition_k_EPositionTopRight,
+ NotificationPosition::BottomLeft => sys::ENotificationPosition_k_EPositionBottomLeft,
+ NotificationPosition::BottomRight => sys::ENotificationPosition_k_EPositionBottomRight,
};
sys::SteamAPI_ISteamUtils_SetOverlayNotificationPosition(self.utils, position);
}