Changeset 72 for trunk/LocalPlayer/Term.pas
- Timestamp:
- Jan 15, 2017, 11:47:01 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Term.pas
r69 r72 4054 4054 var 4055 4055 uix, cix, x, y, Loc, i, hw, xm, cm, cmPolOcean, cmPolNone: integer; 4056 PrevMiniPixel, MiniPixel: PPixel32;4056 PrevMiniPixel, MiniPixel: TPixelPointer; 4057 4057 begin 4058 4058 cmPolOcean := GrExt[HGrSystem].Data.Canvas.Pixels[101, 67]; … … 4065 4065 end; 4066 4066 Mini.BeginUpdate; 4067 MiniPixel.Init(Mini); 4068 PrevMiniPixel.Init(Mini); 4067 4069 for y := 0 to G.ly - 1 do 4068 4070 begin … … 4074 4076 begin 4075 4077 xm := ((x - xwMini) * 2 + i + y and 1 - hw + G.lx * 5) mod (G.lx * 2); 4076 MiniPixel := GetBitmapPixelPtr(Mini,xm, y);4078 MiniPixel.SetXY(xm, y); 4077 4079 cm := MiniColors[MyMap[Loc] and fTerrain, i]; 4078 4080 if ClientMode = cEditMap then … … 4099 4101 if y > 0 then begin 4100 4102 // 2x2 city dot covers two lines 4101 PrevMiniPixel := GetBitmapPixelPtr(Mini,xm, y - 1);4102 PrevMiniPixel ^.B := cm shr 16;4103 PrevMiniPixel ^.G := cm shr 8 and $FF;4104 PrevMiniPixel ^.R := cm and $FF;4103 PrevMiniPixel.SetXY(xm, y - 1); 4104 PrevMiniPixel.Pixel^.B := cm shr 16; 4105 PrevMiniPixel.Pixel^.G := cm shr 8 and $FF; 4106 PrevMiniPixel.Pixel^.R := cm and $FF; 4105 4107 end 4106 4108 end … … 4131 4133 cm := Tribe[MyRO.Territory[Loc]].Color; 4132 4134 end; 4133 MiniPixel ^.B := cm shr 16;4134 MiniPixel ^.G := cm shr 8 and $FF;4135 MiniPixel ^.R := cm and $FF;4135 MiniPixel.Pixel^.B := cm shr 16; 4136 MiniPixel.Pixel^.G := cm shr 8 and $FF; 4137 MiniPixel.Pixel^.R := cm and $FF; 4136 4138 end; 4137 4139 end;
Note:
See TracChangeset
for help on using the changeset viewer.