Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
feh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
derf
feh
Commits
0135813d
Commit
0135813d
authored
15 years ago
by
Birte Kristina Friesel
Browse files
Options
Downloads
Patches
Plain Diff
Add <keypad begin> to antialias the image (other keypad keys don't do this)
parent
ff030be3
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
TODO
+3
-0
3 additions, 0 deletions
TODO
feh.1
+9
-0
9 additions, 0 deletions
feh.1
src/keyevents.c
+6
-3
6 additions, 3 deletions
src/keyevents.c
src/options.c
+3
-0
3 additions, 0 deletions
src/options.c
with
21 additions
and
3 deletions
TODO
+
3
−
0
View file @
0135813d
...
...
@@ -15,3 +15,6 @@ then resizing the window) causing imlib2 warnings.
--fmmode is neither documented nor implemented. Either implement or
remove it.
<keypad begin> antialieses the image, but doing that automatically upon
key release would be better.
This diff is collapsed.
Click to expand it.
feh.1
+
9
−
0
View file @
0135813d
...
...
@@ -562,6 +562,15 @@ Quit feh
Move the image to the left
.B <KEYPAD RIGHT>
Move the image to the right
.B <KEYPAD UP>
Move the image up
.B <KEYPAD DOWN>
Move the image down
.B <KEYPAD BEGIN>
Antialias the image.
When controlling feh with the mouse, this is done by default as soon as the
respective mouse button is released; in keypad mode, you need to press this
button.
.B <KEYPAD +>
Zoom in
.B <KEYPAD ->
...
...
This diff is collapsed.
Click to expand it.
src/keyevents.c
+
6
−
3
View file @
0135813d
...
...
@@ -304,15 +304,18 @@ feh_event_handle_keypress(XEvent * ev)
case
XK_KP_Subtract
:
winwid
->
zoom
=
winwid
->
zoom
*
0
.
75
;
winwidget_render_image
(
winwid
,
0
,
0
);
break
;
break
;
case
XK_KP_Multiply
:
winwid
->
zoom
=
1
;
winwidget_render_image
(
winwid
,
0
,
0
);
break
;
break
;
case
XK_KP_Divide
:
feh_calc_needed_zoom
(
&
winwid
->
zoom
,
winwid
->
im_w
,
winwid
->
im_h
,
winwid
->
w
,
winwid
->
h
);
winwidget_render_image
(
winwid
,
0
,
0
);
break
;
break
;
case
XK_KP_Begin
:
winwidget_render_image
(
winwid
,
0
,
1
);
break
;
default:
break
;
}
...
...
This diff is collapsed.
Click to expand it.
src/options.c
+
3
−
0
View file @
0135813d
...
...
@@ -1123,6 +1123,9 @@ show_usage(void)
" q, Q Quit the slideshow
\n
"
" <KEYPAD LEFT> Move the image to the left
\n
"
" <KEYPAD RIGHT> Move the image to the right
\n
"
" <KEYPAD UP> Move the image up
\n
"
" <KEYPAD DOWN> Move the image down
\n
"
" <KEYPAD BEGIN> Antialias the image
\n
"
" <KEYPAD +> Zoom in
\n
"
" <KEYPAD -> Zoom out
\n
"
" <KEYPAD *> Zoom to 100%%
\n
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment