mirror of
https://github.com/pinnacle-comp/pinnacle.git
synced 2024-12-26 21:58:10 +01:00
Fix Rust API scaling filter setting
Remind me to set those enums to start as one, thanks
This commit is contained in:
parent
9ebc3074b9
commit
063164c07f
2 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue