Changeset 28 for trunk/LocalPlayer/CityScreen.pas
- Timestamp:
- Jan 8, 2017, 7:14:56 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/CityScreen.pas
r20 r28 216 216 Back.Height := ClientHeight; 217 217 Template := TBitmap.Create; 218 LoadGraphicFile(Template, HomeDir + 'Graphics ' + DirectorySeparator + 'City', gfNoGamma);218 LoadGraphicFile(Template, HomeDir + 'Graphics\City', gfNoGamma); 219 219 Template.PixelFormat := pf8bit; 220 220 CityMapTemplate := TBitmap.Create; 221 LoadGraphicFile(CityMapTemplate, HomeDir + 'Graphics ' + DirectorySeparator + 'BigCityMap', gfNoGamma);221 LoadGraphicFile(CityMapTemplate, HomeDir + 'Graphics\BigCityMap', gfNoGamma); 222 222 CityMapTemplate.PixelFormat := pf8bit; 223 223 SmallCityMapTemplate := TBitmap.Create; 224 LoadGraphicFile(SmallCityMapTemplate, HomeDir + 'Graphics ' + DirectorySeparator + 'SmallCityMap',224 LoadGraphicFile(SmallCityMapTemplate, HomeDir + 'Graphics\SmallCityMap', 225 225 gfNoGamma); 226 226 SmallCityMapTemplate.PixelFormat := pf24bit; … … 447 447 line[i, 1] := 0; 448 448 line[i, 2] := gray; // 255-(255-gray) div 2; 449 end 449 end; 450 450 end; 451 451 … … 453 453 i: integer; 454 454 begin 455 Offscreen.BeginUpdate; 455 456 for i := 0 to h - 1 do 456 RedLine(@(PLine(offscreen.ScanLine[y + i])[x]), w) 457 RedLine(@(PLine(offscreen.ScanLine[y + i])[x]), w); 458 Offscreen.EndUpdate; 457 459 end; 458 460
Note:
See TracChangeset
for help on using the changeset viewer.