From 9707e6bb0c429c73b3357c8980740c5ea2f1d77f Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 26 Apr 2004 00:07:25 +0000 Subject: [PATCH] allow omitting alpha from "1,1,1", like #FFFFFF --- stepmania/src/RageTypes.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stepmania/src/RageTypes.h b/stepmania/src/RageTypes.h index a98900f4b2..091d875da1 100644 --- a/stepmania/src/RageTypes.h +++ b/stepmania/src/RageTypes.h @@ -140,6 +140,11 @@ public: bool FromString( const CString &str ) { int result = sscanf( str, "%f,%f,%f,%f", &r, &g, &b, &a ); + if( result == 3 ) + { + a = 1; + return true; + } if( result == 4 ) return true;