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)]
async fn main() {
// Deconstruct to get all the APIs.
#[allow(unused_variables)]
let ApiModules {
pinnacle,
process,
@ -24,7 +25,7 @@ async fn main() {
output,
tag,
layout,
render: _,
render,
} = modules;
let mod_key = Mod::Ctrl;

View file

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