1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 20:38:08 +01:00

WPrefs: Value stored to 'timage' is never read

three times in a row

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
This commit is contained in:
Amadeusz Sławiński
2014-05-13 23:41:31 +02:00
committed by Carlos R. Mafra
parent 4b744d517b
commit 2cb3119e08

View File

@@ -646,18 +646,15 @@ static Pixmap renderTexture(WMScreen * scr, WMPropList * texture, int width, int
case 'T': case 'T':
image = RMakeTiledImage(timage, width, height); image = RMakeTiledImage(timage, width, height);
RReleaseImage(timage); RReleaseImage(timage);
timage = image;
break; break;
case 'C': case 'C':
image = RMakeCenteredImage(timage, width, height, &color); image = RMakeCenteredImage(timage, width, height, &color);
RReleaseImage(timage); RReleaseImage(timage);
timage = image;
break; break;
case 'S': case 'S':
case 'M': case 'M':
image = RScaleImage(timage, width, height); image = RScaleImage(timage, width, height);
RReleaseImage(timage); RReleaseImage(timage);
timage = image;
break; break;
} }
} }