Skip to content

Commit

Permalink
this should not be necessary but does not hurt either
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@10783 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Oct 9, 2015
1 parent cb550e9 commit 722dc1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xpra/client/gtk_base/gtk_client_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ def make_cursor(self, cursor_data):
if sw>cmaxw or sh>cmaxh:
ratio = max(float(w)/cmaxw, float(h)/cmaxh)
cursorlog("clamping cursor size to %ix%i using ratio=%s", cmaxw, cmaxh, ratio)
sx, sy, sw, sh = int(x/ratio), int(y/ratio), int(w/ratio), int(h/ratio)
sx, sy, sw, sh = int(x/ratio), int(y/ratio), min(cmaxw, int(w/ratio)), min(cmaxh, int(h/ratio))
if sw!=w or sh!=h:
cursorlog("scaling cursor from %ix%i hotspot at %ix%i to %ix%i hotspot at %ix%i", w, h, x, y, sw, sh, sx, sy)
cursor_pixbuf = pixbuf.scale_simple(sw, sh, INTERP_BILINEAR)
Expand Down

0 comments on commit 722dc1a

Please sign in to comment.