Skip to content

Commit

Permalink
clamp to size we will use, not original size
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@10782 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Oct 9, 2015
1 parent e5d7fea commit cb550e9
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 @@ -518,7 +518,7 @@ def make_cursor(self, cursor_data):
sw = max(1, sw)
sh = max(1, sh)
#ensure we honour the max size:
if w>cmaxw or h>cmaxh:
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)
Expand Down

0 comments on commit cb550e9

Please sign in to comment.