From ad29013e44e2f32029893edd977b0b555c8a50cd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?=
Date: Tue, 21 Dec 2021 07:43:02 +0100
Subject: Add zooming to fit width/height if larger
Also, mildly refactor get_surface_dimensions().
---
fastiv.c | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
(limited to 'fastiv.c')
diff --git a/fastiv.c b/fastiv.c
index 21e778f..6389504 100644
--- a/fastiv.c
+++ b/fastiv.c
@@ -119,6 +119,8 @@ static struct key_section help_keys[] = {
{"1...9", "Set zoom to N:1"},
{"plus plus", "Zoom in"},
{"minus minus", "Zoom out"},
+ {"w", "Zoom to fit width if larger"},
+ {"h", "Zoom to fit height if larger"},
{}
}},
{"Orientation", (struct key[]) {
@@ -127,6 +129,12 @@ static struct key_section help_keys[] = {
{"greater", "Rotate clockwise"},
{}
}},
+ {"Configuration", (struct key[]) {
+ {"x", "Toggle scale to fit if larger"},
+ {"i", "Toggle smooth scaling"},
+ {"t", "Toggle transparency highlighting"},
+ {}
+ }},
{"Control", (struct key[]) {
{"bracketleft", "Previous page"},
{"bracketright", "Next page"},
@@ -135,12 +143,6 @@ static struct key_section help_keys[] = {
{"space", "Toggle playback"},
{}
}},
- {"Configuration", (struct key[]) {
- {"x", "Toggle scale to fit"},
- {"i", "Toggle smooth scaling"},
- {"t", "Toggle transparency highlighting"},
- {}
- }},
{"Tools", (struct key[]) {
{"p", "Print..."},
{"s", "Save page as..."},
--
cgit v1.2.3