diff --git a/stepmania/src/RageBitmapTexture.cpp b/stepmania/src/RageBitmapTexture.cpp index 39ba1db2d1..049632060a 100644 --- a/stepmania/src/RageBitmapTexture.cpp +++ b/stepmania/src/RageBitmapTexture.cpp @@ -108,11 +108,12 @@ int PixFmtMaskNo(GLenum fmt) static void GetResolutionFromFileName( CString sPath, int &Width, int &Height ) { /* Match: - * Foo [res 512x128].png - * - * This leaves us room syntactically to do other things later, if we need to. + * Foo (res 512x128).png + * Also allow, eg: + * Foo (dither, res 512x128).png + * * Be careful that this doesn't get mixed up with frame dimensions. */ - Regex re("\\[res ([0-9]+)x([0-9]+)\\]"); + Regex re("\\([^\\)]*res ([0-9]+)x([0-9]+).*\\)"); vector matches; if(!re.Compare(sPath, matches))