fix: Bug
This commit is contained in:
@ -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())),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user