mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-04 18:57:38 +00:00
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…
Reference in a new issue