Changeset 506 for trunk/LocalPlayer/Wonders.pas
- Timestamp:
- Dec 25, 2023, 11:35:51 AM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Wonders.pas
r490 r506 122 122 ((ax < amax1 * X) or (ax > amin3 * X))) then begin 123 123 for ch := 0 to 2 do begin 124 C := Line[0].Pixel ^.Planes[ch] - Darken;125 if C < 0 then Line[0].Pixel ^.Planes[ch] := 0126 else Line[0].Pixel ^.Planes[ch] := C;127 C := Line[1].Pixel ^.Planes[ch] - Darken;128 if C < 0 then Line[1].Pixel ^.Planes[ch] := 0129 else Line[1].Pixel ^.Planes[ch] := C;130 C := Line[2].Pixel ^.Planes[ch] - Darken;131 if C < 0 then Line[2].Pixel ^.Planes[ch] := 0132 else Line[2].Pixel ^.Planes[ch] := C;133 C := Line[3].Pixel ^.Planes[ch] - Darken;134 if C < 0 then Line[3].Pixel ^.Planes[ch] := 0135 else Line[3].Pixel ^.Planes[ch] := C;124 C := Line[0].PixelPlane[ch] - Darken; 125 if C < 0 then Line[0].PixelPlane[ch] := 0 126 else Line[0].PixelPlane[ch] := C; 127 C := Line[1].PixelPlane[ch] - Darken; 128 if C < 0 then Line[1].PixelPlane[ch] := 0 129 else Line[1].PixelPlane[ch] := C; 130 C := Line[2].PixelPlane[ch] - Darken; 131 if C < 0 then Line[2].PixelPlane[ch] := 0 132 else Line[2].PixelPlane[ch] := C; 133 C := Line[3].PixelPlane[ch] - Darken; 134 if C < 0 then Line[3].PixelPlane[ch] := 0 135 else Line[3].PixelPlane[ch] := C; 136 136 end; 137 137 end; … … 163 163 for Y := 0 to ScaleToNative(ySizeBig) - 1 do begin 164 164 for X := 0 to ScaleToNative(xSizeBig) - 1 do begin 165 Darken := ((255 - Src.Pixel ^.B) * 3 + (255 - Src.Pixel^.G) *166 15 + (255 - Src.Pixel ^.R) * 9) div 128;165 Darken := ((255 - Src.PixelB) * 3 + (255 - Src.PixelG) * 166 15 + (255 - Src.PixelR) * 9) div 128; 167 167 for ch := 0 to 2 do begin 168 C := Dst.Pixel ^.Planes[ch] - Darken;169 if C < 0 then Dst.Pixel ^.Planes[ch] := 0170 else Dst.Pixel ^.Planes[ch] := C;168 C := Dst.PixelPlane[ch] - Darken; 169 if C < 0 then Dst.PixelPlane[ch] := 0 170 else Dst.PixelPlane[ch] := C; 171 171 end; 172 172 Src.NextPixel;
Note:
See TracChangeset
for help on using the changeset viewer.