This commit is contained in:
2025-11-22 09:45:20 +01:00
parent 1293d014b1
commit 53a3ff97e1

View File

@ -39,8 +39,8 @@ pub fn encode(input: &Path, output: &Path, initials: &str, signature: &str, orig
}; };
let ys: Vec<u32> = match origin { let ys: Vec<u32> = match origin {
ORIGIN_BOTTOM_LEFT | ORIGIN_BOTTOM_RIGHT => (0..height).collect(), ORIGIN_BOTTOM_LEFT | ORIGIN_BOTTOM_RIGHT => (0..height).rev().collect(),
ORIGIN_TOP_LEFT | ORIGIN_TOP_RIGHT => (0..height).rev().collect(), ORIGIN_TOP_LEFT | ORIGIN_TOP_RIGHT => (0..height).collect(),
_ => return Err(GfxError::InvalidOrigin("Invalid origin".into())), _ => return Err(GfxError::InvalidOrigin("Invalid origin".into())),
}; };