winemenubuilder: Simplify switch cases.
This commit is contained in:
parent
bbd93e535a
commit
d6001be348
@ -505,11 +505,9 @@ static BOOL SaveIconResAsPNG(const BITMAPINFO *pIcon, const char *png_filename,
|
|||||||
switch (pIcon->bmiHeader.biBitCount)
|
switch (pIcon->bmiHeader.biBitCount)
|
||||||
{
|
{
|
||||||
case 4:
|
case 4:
|
||||||
return SavePalettedIconResAsPNG(pIcon, png_filename, commentW);
|
|
||||||
case 8:
|
case 8:
|
||||||
return SavePalettedIconResAsPNG(pIcon, png_filename, commentW);
|
return SavePalettedIconResAsPNG(pIcon, png_filename, commentW);
|
||||||
case 24:
|
case 24:
|
||||||
return SaveTrueColorIconResAsPNG(pIcon, png_filename, commentW);
|
|
||||||
case 32:
|
case 32:
|
||||||
return SaveTrueColorIconResAsPNG(pIcon, png_filename, commentW);
|
return SaveTrueColorIconResAsPNG(pIcon, png_filename, commentW);
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user