From dfa3e548a01e47b180e2cb27a81f3428ecedfa25 Mon Sep 17 00:00:00 2001 From: Niels Martin Hansen Date: Wed, 16 Jul 2008 01:41:33 +0000 Subject: [PATCH] Fix colour picker buttons in style editor by making AssColor::GetWXColor() aware that alpha has the opposite meaning in wxColour and ASS Originally committed to SVN as r2262. --- aegisub/ass_style.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/ass_style.cpp b/aegisub/ass_style.cpp index a281e9d5c..d1ed584d1 100644 --- a/aegisub/ass_style.cpp +++ b/aegisub/ass_style.cpp @@ -85,7 +85,7 @@ void AssColor::Parse(const wxString value) { /////////////////// // Gets a wxColour wxColour AssColor::GetWXColor() { - return wxColour(r,g,b,a); + return wxColour(r,g,b,255-a); }