Corrected aspect ratio. - icy_draw - icy_draw is the successor to mystic draw. fork / mirror
HTML git clone https://git.drkhsh.at/icy_draw.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 04724db50281262b319d7dc62683433a9532b897
DIR parent a77c3726470b80b4fdc80bc40a57d82ef79cc1c8
HTML Author: Mike Krüger <mkrueger@posteo.de>
Date: Tue, 19 Sep 2023 22:39:31 +0200
Corrected aspect ratio.
Diffstat:
M src/ui/editor/ansi/mod.rs | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
DIR diff --git a/src/ui/editor/ansi/mod.rs b/src/ui/editor/ansi/mod.rs
@@ -189,7 +189,11 @@ impl Document for AnsiEditor {
let mut scale = options.get_scale();
if self.buffer_view.lock().get_buffer().use_aspect_ratio() {
- scale.y *= 1.35;
+ if self.buffer_view.lock().get_buffer().use_letter_spacing() {
+ scale.y *= 1.2;
+ } else {
+ scale.y *= 1.35;
+ }
}
let opt = icy_engine_egui::TerminalOptions {
stick_to_bottom: false,