diff options
author | Frediano Ziglio <fziglio@redhat.com> | 2017-11-13 14:54:50 +0000 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2017-11-13 17:17:26 +0000 |
commit | b2b695124fe649fb7e8b363e14aeb3f19a70b311 (patch) | |
tree | 1e62308abf30542fe5e6ea776962192784eb67d6 | |
parent | 965cba1e044928c85acc422b70e259e7b0810b33 (diff) |
Use mnemonic to check for cursor limits
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Uri Lublin <uril@redhat.com>
-rw-r--r-- | src/spice-streaming-agent.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/spice-streaming-agent.cpp b/src/spice-streaming-agent.cpp index 973192b..11769ff 100644 --- a/src/spice-streaming-agent.cpp +++ b/src/spice-streaming-agent.cpp @@ -289,7 +289,8 @@ static void usage(const char *progname) static void send_cursor(const XFixesCursorImage &image) { - if (image.width >= 1024 || image.height >= 1024) + if (image.width >= STREAM_MSG_CURSOR_SET_MAX_WIDTH || + image.height >= STREAM_MSG_CURSOR_SET_MAX_HEIGHT) return; size_t cursor_size = |