Don't generate an existing cover

This commit is contained in:
Flamefire committed 2014-12-09 22:29:34 +01:00
1 parent 7e104f7167
commit bbc73b8784
1 file changed
+4 -1
+4 -1
View File
@@ -91,7 +91,10 @@ namespace Vocaluxe.Base
public static CTextureRef GenerateCover(string text, ECoverGeneratorType type, CSong firstSong) public static CTextureRef GenerateCover(string text, ECoverGeneratorType type, CSong firstSong)
{ {
CTextureRef texture = CDraw.CopyTexture(NoCover); CTextureRef texture = Cover(text);
if (texture != NoCover)
return texture;
texture = CDraw.CopyTexture(NoCover);
Task.Factory.StartNew(() => Task.Factory.StartNew(() =>
{ {
_CancelToken.Token.ThrowIfCancellationRequested(); _CancelToken.Token.ThrowIfCancellationRequested();