diff --git a/uxplay.1 b/uxplay.1 index 9a0d526..568ff65 100644 --- a/uxplay.1 +++ b/uxplay.1 @@ -42,7 +42,7 @@ UxPlay 1.68: An open\-source AirPlay mirroring (+ audio streaming) server: .TP \fB\-o\fR Set display "overscanned" mode on (not usually needed) .TP -\fB-fs\fR Full-screen (only works with X11, Wayland and VAAPI) +\fB-fs\fR Full-screen (only works with X11, Wayland, VAAPI, D3D11) .TP \fB\-p\fR Use legacy ports UDP 6000:6001:7011 TCP 7000:7001:7100 .TP diff --git a/uxplay.cpp b/uxplay.cpp index 63e8329..b68765b 100644 --- a/uxplay.cpp +++ b/uxplay.cpp @@ -583,7 +583,7 @@ static void print_info (char *name) { printf("-taper Use a \"tapered\" AirPlay volume-control profile\n"); printf("-s wxh[@r]Set display resolution [refresh_rate] default 1920x1080[@60]\n"); printf("-o Set display \"overscanned\" mode on (not usually needed)\n"); - printf("-fs Full-screen (only works with X11, Wayland and VAAPI)\n"); + printf("-fs Full-screen (only works with X11, Wayland, VAAPI, D3D11)\n"); printf("-p Use legacy ports UDP 6000:6001:7011 TCP 7000:7001:7100\n"); printf("-p n Use TCP and UDP ports n,n+1,n+2. range %d-%d\n", LOWEST_ALLOWED_PORT, HIGHEST_PORT); printf(" use \"-p n1,n2,n3\" to set each port, \"n1,n2\" for n3 = n2+1\n"); @@ -1949,7 +1949,11 @@ int main (int argc, char *argv[]) { } if (videosink == "d3d11videosink" && use_video) { - videosink.append(" fullscreen-toggle-mode=alt-enter"); + if (fullscreen) { + videosink.append(" fullscreen-toggle-mode=property fullscreen=true"); + } else { + videosink.append(" fullscreen-toggle-mode=alt-enter"); + } LOGI("d3d11videosink is being used with option fullscreen-toggle-mode=alt-enter\n" "Use Alt-Enter key combination to toggle into/out of full-screen mode"); }