From 732c5c76547d6e4375a97793e0cdc57e441ac0e5 Mon Sep 17 00:00:00 2001 From: arch1t3cht Date: Fri, 19 Aug 2022 21:17:29 +0200 Subject: [PATCH] Copy subitles: Fix wxBitmap usage UseAlpha turned out to be unnecessary and doesn't even exist in some wxWidgets ports. --- src/command/video.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/command/video.cpp b/src/command/video.cpp index 2fbdb8715..1a779a52b 100644 --- a/src/command/video.cpp +++ b/src/command/video.cpp @@ -325,9 +325,7 @@ struct video_frame_copy_subs final : public validator_video_loaded { STR_HELP("Copy the currently displayed subtitles to the clipboard, with transparent background") void operator()(agi::Context *c) override { - wxBitmap img(get_image(c, false, true)); - img.UseAlpha(); - SetClipboard(img); + SetClipboard(wxBitmap(get_image(c, false, true), 32)); } };