minor optimization
This commit is contained in:
@@ -24,7 +24,7 @@ static void GetResolutionFromFileName( CString sPath, int &Width, int &Height )
|
|||||||
* Foo (dither, res 512x128).png
|
* Foo (dither, res 512x128).png
|
||||||
*
|
*
|
||||||
* Be careful that this doesn't get mixed up with frame dimensions. */
|
* Be careful that this doesn't get mixed up with frame dimensions. */
|
||||||
Regex re("\\([^\\)]*res ([0-9]+)x([0-9]+).*\\)");
|
static Regex re("\\([^\\)]*res ([0-9]+)x([0-9]+).*\\)");
|
||||||
|
|
||||||
vector<CString> matches;
|
vector<CString> matches;
|
||||||
if(!re.Compare(sPath, matches))
|
if(!re.Compare(sPath, matches))
|
||||||
|
|||||||
Reference in New Issue
Block a user