aboutsummaryrefslogtreecommitdiff
path: root/fastiv.c
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-12-21 07:43:02 +0100
committerPřemysl Eric Janouch <p@janouch.name>2021-12-21 08:13:31 +0100
commitad29013e44e2f32029893edd977b0b555c8a50cd (patch)
treeb589a761622460104cd5f5550e6ca79c914ce0a1 /fastiv.c
parent33851295d81d45734b83f14bddf785a47ddc9533 (diff)
downloadfiv-ad29013e44e2f32029893edd977b0b555c8a50cd.tar.gz
fiv-ad29013e44e2f32029893edd977b0b555c8a50cd.tar.xz
fiv-ad29013e44e2f32029893edd977b0b555c8a50cd.zip
Add zooming to fit width/height if larger
Also, mildly refactor get_surface_dimensions().
Diffstat (limited to 'fastiv.c')
-rw-r--r--fastiv.c14
1 files changed, 8 insertions, 6 deletions
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 <control>plus", "Zoom in"},
{"minus <control>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[]) {
{"<control>p", "Print..."},
{"<control>s", "Save page as..."},