diff --git a/noita-proxy/Cargo.lock b/noita-proxy/Cargo.lock index 0075b5fc..e7097c8a 100644 --- a/noita-proxy/Cargo.lock +++ b/noita-proxy/Cargo.lock @@ -3211,7 +3211,7 @@ checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" [[package]] name = "steamworks" version = "0.11.0" -source = "git+https://github.com/IntQuant/steamworks-rs#d05eaa60db328156aeee172b0b157f3f69c70b30" +source = "git+https://github.com/IntQuant/steamworks-rs#d765c925e2c481a3e6eb3ecdff12e09dcd618f26" dependencies = [ "bitflags 1.3.2", "lazy_static", @@ -3223,7 +3223,7 @@ dependencies = [ [[package]] name = "steamworks-sys" version = "0.11.0" -source = "git+https://github.com/IntQuant/steamworks-rs#d05eaa60db328156aeee172b0b157f3f69c70b30" +source = "git+https://github.com/IntQuant/steamworks-rs#d765c925e2c481a3e6eb3ecdff12e09dcd618f26" [[package]] name = "strict-num" diff --git a/noita-proxy/src/util/steam_helper.rs b/noita-proxy/src/util/steam_helper.rs index ad119915..553b8503 100644 --- a/noita-proxy/src/util/steam_helper.rs +++ b/noita-proxy/src/util/steam_helper.rs @@ -74,10 +74,13 @@ impl SteamState { let friend = friends.get_friend(id); friend .small_avatar() - .map(|data| { + .map(|(width, height, data)| { ctx.load_texture( format!("steam_avatar_for_{:?}", id), - ColorImage::from_rgba_unmultiplied([32, 32], &data), + ColorImage::from_rgba_unmultiplied( + [width as usize, height as usize], + &data, + ), TextureOptions::LINEAR, ) })