Redo some reverted style changes.

This commit is contained in:
John Scipione
2012-07-30 02:45:45 -04:00
parent 78341a9351
commit b79561ad9c
+6 -6
View File
@@ -31,21 +31,21 @@ ToGray(ColorRGB32 c)
static uint static uint
GetRedValue(ColorRGB32 c) GetRedValue(ColorRGB32 c)
{ {
return c.little.red; return c.little.red;
} }
static uint static uint
GetGreenValue(ColorRGB32 c) GetGreenValue(ColorRGB32 c)
{ {
return c.little.green; return c.little.green;
} }
static uint static uint
GetBlueValue(ColorRGB32 c) GetBlueValue(ColorRGB32 c)
{ {
return c.little.blue; return c.little.blue;
} }
@@ -56,11 +56,11 @@ Halftone::Halftone(color_space colorSpace, double gamma, double min,
fGray = ToGray; fGray = ToGray;
SetPlanes(kPlaneMonochrome1); SetPlanes(kPlaneMonochrome1);
SetBlackValue(kHighValueMeansBlack); SetBlackValue(kHighValueMeansBlack);
InitFloydSteinberg(); InitFloydSteinberg();
CreateGammaTable(gamma, min); CreateGammaTable(gamma, min);
if (ditherType == kTypeFloydSteinberg) { if (ditherType == kTypeFloydSteinberg) {
fDither = &Halftone::DitherFloydSteinberg; fDither = &Halftone::DitherFloydSteinberg;
return; return;