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)]
|
#[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;
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue