Fix Rust API scaling filter setting

Remind me to set those enums to start as one, thanks
This commit is contained in:
Ottatop 2024-03-30 02:21:44 -05:00
parent 9ebc3074b9
commit 063164c07f
2 changed files with 3 additions and 2 deletions

View file

@ -16,6 +16,7 @@ use pinnacle_api::{
#[pinnacle_api::config(modules)] #[pinnacle_api::config(modules)]
async fn main() { async fn main() {
// Deconstruct to get all the APIs. // Deconstruct to get all the APIs.
#[allow(unused_variables)]
let ApiModules { let ApiModules {
pinnacle, pinnacle,
process, process,
@ -24,7 +25,7 @@ async fn main() {
output, output,
tag, tag,
layout, layout,
render: _, render,
} = modules; } = modules;
let mod_key = Mod::Ctrl; let mod_key = Mod::Ctrl;

View file

@ -18,7 +18,7 @@ pub enum ScalingFilter {
/// Use a bilinear filter. /// Use a bilinear filter.
/// ///
/// This will make up- and downscaling blurry. /// This will make up- and downscaling blurry.
Bilinear, Bilinear = 1,
/// Use a nearest neighbor filter. /// Use a nearest neighbor filter.
/// ///
/// This will cause scaling to look pixelated. /// This will cause scaling to look pixelated.