summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy White <jwhite@codeweavers.com>2020-05-06 07:22:56 -0500
committerFrediano Ziglio <freddy77@gmail.com>2020-05-06 13:35:03 +0100
commit942391f354e45720a2d508c2b9c66d3762e636b7 (patch)
tree8a303994fcf9db9cc590efb5ba2616c20421f21c
parentafc5006ead4c475947bf8401efd079e1bff4640f (diff)
Screen for negative inputs for full_screen_fps.
This makes the treatment of the logic condition in display.c match that of scan.c. Acked-by: Frediano Ziglio <fziglio@redhat.com>
-rw-r--r--src/display.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/display.c b/src/display.c
index 931a314..24aacc4 100644
--- a/src/display.c
+++ b/src/display.c
@@ -408,7 +408,7 @@ int display_open(display_t *d, session_t *session)
return X11SPICE_ERR_NODAMAGE;
}
- if (session->options.full_screen_fps == 0) {
+ if (session->options.full_screen_fps <= 0) {
dcookie =
xcb_damage_query_version(d->c, XCB_DAMAGE_MAJOR_VERSION, XCB_DAMAGE_MINOR_VERSION);
damage_version = xcb_damage_query_version_reply(d->c, dcookie, &error);
@@ -747,7 +747,7 @@ void display_close(display_t *d)
{
shm_cache_destroy(d);
g_mutex_clear(&d->shm_cache_mutex);
- if (d->session->options.full_screen_fps == 0) {
+ if (d->session->options.full_screen_fps <= 0) {
xcb_damage_destroy(d->c, d->damage);
}
display_destroy_screen_images(d);