1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-21 05:18:06 +01:00

WPrefs: add warning when renderTexture encounters some unknow settings

Having the warning displayed will help devs to understand what is going
on and where to look at for a fix.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2014-05-31 19:58:49 +02:00
committed by Carlos R. Mafra
parent 266d9a2945
commit 9b65f55f53

View File

@@ -567,6 +567,7 @@ static Pixmap renderTexture(WMScreen * scr, WMPropList * texture, int width, int
style = RHorizontalGradient; style = RHorizontalGradient;
break; break;
default: default:
wwarning("unknow direction in '%s', falling back to diagonal", type);
case 'D': case 'D':
style = RDiagonalGradient; style = RDiagonalGradient;
break; break;
@@ -592,6 +593,7 @@ static Pixmap renderTexture(WMScreen * scr, WMPropList * texture, int width, int
style = RHorizontalGradient; style = RHorizontalGradient;
break; break;
default: default:
wwarning("unknow direction in '%s', falling back to diagonal", type);
case 'D': case 'D':
style = RDiagonalGradient; style = RDiagonalGradient;
break; break;
@@ -625,6 +627,7 @@ static Pixmap renderTexture(WMScreen * scr, WMPropList * texture, int width, int
style = RHorizontalGradient; style = RHorizontalGradient;
break; break;
default: default:
wwarning("unknow direction in '%s', falling back to diagonal", type);
case 'D': case 'D':
style = RDiagonalGradient; style = RDiagonalGradient;
break; break;
@@ -669,6 +672,11 @@ static Pixmap renderTexture(WMScreen * scr, WMPropList * texture, int width, int
image = RScaleImage(timage, width, height); image = RScaleImage(timage, width, height);
RReleaseImage(timage); RReleaseImage(timage);
break; break;
default:
wwarning("type '%s' in not a supported type for a texture", type);
RReleaseImage(timage);
return None;
} }
} }