summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorulteq <ulteq@web.de>2018-01-11 10:59:45 +0100
committerulteq <ulteq@web.de>2018-03-10 21:30:54 +0100
commit6407071aa3d4a213565b0e47fc14c06848a7d582 (patch)
tree6f5b5be3cf4d59423a9b191d38bcf555c46491cd
parent81d0a386e27d044987308a1a66a1a623175fbc4a (diff)
Remove duplicate bounds checking
-rw-r--r--src/winwidget.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/winwidget.c b/src/winwidget.c
index 7ac641a..917e74d 100644
--- a/src/winwidget.c
+++ b/src/winwidget.c
@@ -429,12 +429,6 @@ void winwidget_render_image(winwidget winwid, int resize, int force_alias)
winwidget_reset_image(winwid);
}
- /* bounds checks for panning */
- if (winwid->im_x > winwid->w)
- winwid->im_x = winwid->w;
- if (winwid->im_y > winwid->h)
- winwid->im_y = winwid->h;
-
D(("winwidget_render_image resize %d force_alias %d im %dx%d\n",
resize, force_alias, winwid->im_w, winwid->im_h));