Rev 5962 | Rev 5997 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5962 | Rev 5985 | ||
---|---|---|---|
Line 175... | Line 175... | ||
175 | gray = sqrt(gray) / 3; |
175 | gray = sqrt(gray) / 3; |
176 | DSBYTE[i] = DSBYTE[i+1] = DSBYTE[i+2] = gray; |
176 | DSBYTE[i] = DSBYTE[i+1] = DSBYTE[i+2] = gray; |
177 | } |
177 | } |
178 | } |
178 | } |
Line -... | Line 179... | ||
- | 179 | ||
- | 180 | :void ShadowPixel(dword color_image, strength) |
|
- | 181 | { |
|
- | 182 | dword to = color_image + 3; |
|
- | 183 | strength = 10 - strength; |
|
- | 184 | for ( ; color_image < to; color_image++) |
|
- | 185 | { |
|
- | 186 | ESI = strength * DSBYTE[color_image] / 10; |
|
- | 187 | DSBYTE[color_image] = ESI; |
|
- | 188 | } |
|
179 | 189 | } |
|
180 | :void ShadowImage(dword color_image, w, h, strength) |
190 | :void ShadowImage(dword color_image, w, h, strength) |
181 | { |
191 | { |
182 | dword col, to; |
192 | dword col, to; |
183 | strength = 10 - strength; |
193 | strength = 10 - strength; |