diff --git a/server.c b/server.c index 21795c8..f84b689 100644 --- a/server.c +++ b/server.c @@ -267,7 +267,7 @@ static void rfb_ptr_hook(int mask, int screen_x, int screen_y, rfbClientPtr cl) { .type = EV_REL, .code = REL_WHEEL, - .value = mask & 0b1000 ? -1 : 1, + .value = mask & 0b1000 ? 1 : -1, }, { .type = EV_SYN, @@ -424,16 +424,11 @@ int main(int argc, const char **argv) } else { if (strcmp(drm_ver->name, "nvidia-drm") == 0) { - // quirky + // quirky and slow convert_func = &convert_nv_stripe; vblank_func = &drm_wait_vblank_noop; } - else if (strcmp(drm_ver->name, "vmwgfx") == 0) { - } - else if (strcmp(drm_ver->name, "vboxvideo") == 0) { - vblank_func = &drm_wait_vblank_noop; - } - else if (strcmp(drm_ver->name, "virtio_gpu") == 0) { + else if (strcmp(drm_ver->name, "vmwgfx") == 0 || strcmp(drm_ver->name, "vboxvideo") == 0 || strcmp(drm_ver->name, "virtio_gpu") == 0) { // virgl does not work vblank_func = &drm_wait_vblank_noop; }