Changeset 15
- Timestamp:
- Jan 7, 2017, 10:16:37 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Integrated.lpi
r14 r15 142 142 <Filename Value="Messg.pas"/> 143 143 <IsPartOfProject Value="True"/> 144 <HasResources Value="True"/> 144 <ComponentName Value="MessgDlg"/> 145 <HasResources Value="True"/> 146 <ResourceBaseClass Value="Form"/> 145 147 </Unit12> 146 148 <Unit13> … … 159 161 <Filename Value="Log.pas"/> 160 162 <IsPartOfProject Value="True"/> 161 <HasResources Value="True"/> 163 <ComponentName Value="LogDlg"/> 164 <HasResources Value="True"/> 165 <ResourceBaseClass Value="Form"/> 162 166 </Unit15> 163 167 <Unit16> … … 195 199 <Filename Value="LocalPlayer\MessgEx.pas"/> 196 200 <IsPartOfProject Value="True"/> 197 <HasResources Value="True"/> 201 <ComponentName Value="MessgExDlg"/> 202 <HasResources Value="True"/> 203 <ResourceBaseClass Value="Form"/> 198 204 </Unit23> 199 205 <Unit24> … … 214 220 <Filename Value="LocalPlayer\CityScreen.pas"/> 215 221 <IsPartOfProject Value="True"/> 216 <HasResources Value="True"/> 222 <ComponentName Value="CityDlg"/> 223 <HasResources Value="True"/> 224 <ResourceBaseClass Value="Form"/> 217 225 </Unit27> 218 226 <Unit28> 219 227 <Filename Value="LocalPlayer\UnitStat.pas"/> 220 228 <IsPartOfProject Value="True"/> 221 <HasResources Value="True"/> 229 <ComponentName Value="UnitStatDlg"/> 230 <HasResources Value="True"/> 231 <ResourceBaseClass Value="Form"/> 222 232 </Unit28> 223 233 <Unit29> 224 234 <Filename Value="LocalPlayer\Draft.pas"/> 225 235 <IsPartOfProject Value="True"/> 226 <HasResources Value="True"/> 236 <ComponentName Value="DraftDlg"/> 237 <HasResources Value="True"/> 238 <ResourceBaseClass Value="Form"/> 227 239 </Unit29> 228 240 <Unit30> 229 241 <Filename Value="LocalPlayer\NatStat.pas"/> 230 242 <IsPartOfProject Value="True"/> 231 <HasResources Value="True"/> 243 <ComponentName Value="NatStatDlg"/> 244 <HasResources Value="True"/> 245 <ResourceBaseClass Value="Form"/> 232 246 </Unit30> 233 247 <Unit31> 234 248 <Filename Value="LocalPlayer\Diagram.pas"/> 235 249 <IsPartOfProject Value="True"/> 236 <HasResources Value="True"/> 250 <ComponentName Value="DiaDlg"/> 251 <HasResources Value="True"/> 252 <ResourceBaseClass Value="Form"/> 237 253 </Unit31> 238 254 <Unit32> 239 255 <Filename Value="LocalPlayer\Wonders.pas"/> 240 256 <IsPartOfProject Value="True"/> 241 <HasResources Value="True"/> 257 <ComponentName Value="WondersDlg"/> 258 <HasResources Value="True"/> 259 <ResourceBaseClass Value="Form"/> 242 260 </Unit32> 243 261 <Unit33> … … 251 269 <Filename Value="LocalPlayer\CityType.pas"/> 252 270 <IsPartOfProject Value="True"/> 253 <HasResources Value="True"/> 271 <ComponentName Value="CityTypeDlg"/> 272 <HasResources Value="True"/> 273 <ResourceBaseClass Value="Form"/> 254 274 </Unit34> 255 275 <Unit35> 256 276 <Filename Value="LocalPlayer\Enhance.pas"/> 257 277 <IsPartOfProject Value="True"/> 258 <HasResources Value="True"/> 278 <ComponentName Value="EnhanceDlg"/> 279 <HasResources Value="True"/> 280 <ResourceBaseClass Value="Form"/> 259 281 </Unit35> 260 282 <Unit36> … … 271 293 <Filename Value="LocalPlayer\Battle.pas"/> 272 294 <IsPartOfProject Value="True"/> 273 <HasResources Value="True"/> 295 <ComponentName Value="BattleDlg"/> 296 <HasResources Value="True"/> 297 <ResourceBaseClass Value="Form"/> 274 298 </Unit38> 275 299 <Unit39> … … 294 318 </Target> 295 319 <SearchPaths> 296 <IncludeFiles Value="LocalPlayer "/>320 <IncludeFiles Value="LocalPlayer;$(ProjOutDir)"/> 297 321 <OtherUnitFiles Value="LocalPlayer"/> 298 322 <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/> -
trunk/LocalPlayer/Term.pas
r12 r15 4205 4205 offscreen.Canvas.Font.Assign(UniFont[ftSmall]); 4206 4206 rec := Rect(0, 0, MapWidth, MapHeight); 4207 { TODOScrollDC(offscreen.Canvas.Handle, (xwd - xw) * (xxt * 2),4208 (ywd - yw) * yyt, rec, rec, 0, nil); }4207 ScrollDC(offscreen.Canvas.Handle, (xwd - xw) * (xxt * 2), 4208 (ywd - yw) * yyt, rec, rec, 0, nil); 4209 4209 for DoInvalidate := false to FastScrolling do 4210 4210 begin … … 4212 4212 begin 4213 4213 rec.Bottom := MapHeight - overlap; 4214 { TODOScrollDC(Canvas.Handle, (xwd - xw) * (xxt * 2), (ywd - yw) * yyt, rec,4215 rec, 0, nil); }4214 ScrollDC(Canvas.Handle, (xwd - xw) * (xxt * 2), (ywd - yw) * yyt, rec, 4215 rec, 0, nil); 4216 4216 ProcessOptions := prInvalidate; 4217 4217 end … … 7789 7789 procedure TMainScreen.mLogClick(Sender: TObject); 7790 7790 begin 7791 LogDlg.Show 7791 LogDlg.Show; 7792 7792 end; 7793 7793 7794 7794 procedure TMainScreen.FormShow(Sender: TObject); 7795 7795 begin 7796 Timer1.Enabled := true 7796 Timer1.Enabled := true; 7797 Left := 0; 7798 Top := 0; 7797 7799 end; 7798 7800 7799 7801 procedure TMainScreen.FormClose(Sender: TObject; var Action: TCloseAction); 7800 7802 begin 7801 Timer1.Enabled := false 7803 Timer1.Enabled := false; 7802 7804 end; 7803 7805 7804 7806 procedure TMainScreen.Radio(Sender: TObject); 7805 7807 begin 7806 TMenuItem(Sender).Checked := true 7808 TMenuItem(Sender).Checked := true; 7807 7809 end; 7808 7810 -
trunk/Protocol.pas
r10 r15 1718 1718 1719 1719 begin 1720 // TODOassert(sizeof(TPlayerContext) = 2048);1721 // TODOassert(sizeof(TModel) - 2 * sizeof(LongInt) - 4 * sizeof(word)1722 //= sIntSetDevModel and $F * 4);1720 assert(sizeof(TPlayerContext) = 2048); 1721 assert(sizeof(TModel) - 2 * sizeof(LongInt) - 4 * sizeof(word) 1722 = sIntSetDevModel and $F * 4); 1723 1723 1724 1724 end. -
trunk/ScreenTools.pas
r14 r15 6 6 uses 7 7 Windows, StringTables, 8 9 8 LCLIntf, LCLType, LMessages, Messages, SysUtils, Classes, Graphics, Controls, 10 9 Forms, Menus; … … 608 607 PixelDst: ^TPixel; 609 608 begin 610 // TODO assert(Src.PixelFormat = pf8bit);611 // TODOassert(dst.PixelFormat = pf24bit);609 {TODO assert(Src.PixelFormat = pf8bit);} 610 assert(dst.PixelFormat = pf24bit); 612 611 if xDst < 0 then 613 612 begin -
trunk/Start.pas
r14 r15 182 182 procedure TStartDlg.FormCreate(Sender: TObject); 183 183 var 184 x, y, i, ResolutionX, ResolutionY, ResolutionBPP, ResolutionFreq ,185 ScreenMode: integer;184 x, y, i, ResolutionX, ResolutionY, ResolutionBPP, ResolutionFreq: Integer; 185 ScreenMode: Integer; 186 186 DefaultAI, s: string; 187 187 r0, r1: HRgn; 188 188 Reg: TRegistry; 189 FirstStart: boolean; 189 FirstStart: Boolean; 190 Location: TPoint; 190 191 begin 191 192 Reg := TRegistry.Create; … … 237 238 begin 238 239 Reg.OpenKey('SOFTWARE\cevo\RegVer9', false); 239 try240 if Reg.ValueExists('ScreenMode') then 240 241 ScreenMode := Reg.ReadInteger('ScreenMode'); 241 FullScreen := ScreenMode > 0; 242 if Reg.ValueExists('ResolutionX') then 243 ResolutionX := Reg.ReadInteger('ResolutionX'); 244 if Reg.ValueExists('ResolutionY') then 245 ResolutionY := Reg.ReadInteger('ResolutionY'); 246 if Reg.ValueExists('ResolutionBPP') then 247 ResolutionBPP := Reg.ReadInteger('ResolutionBPP'); 248 if Reg.ValueExists('ResolutionFreq') then 249 ResolutionFreq := Reg.ReadInteger('ResolutionFreq'); 250 if ScreenMode = 2 then 251 ChangeResolution(ResolutionX, ResolutionY, ResolutionBPP, 252 ResolutionFreq); 253 except 254 end; 242 FullScreen := ScreenMode > 0; 243 if Reg.ValueExists('ResolutionX') then 244 ResolutionX := Reg.ReadInteger('ResolutionX'); 245 if Reg.ValueExists('ResolutionY') then 246 ResolutionY := Reg.ReadInteger('ResolutionY'); 247 if Reg.ValueExists('ResolutionBPP') then 248 ResolutionBPP := Reg.ReadInteger('ResolutionBPP'); 249 if Reg.ValueExists('ResolutionFreq') then 250 ResolutionFreq := Reg.ReadInteger('ResolutionFreq'); 251 if ScreenMode = 2 then 252 ChangeResolution(ResolutionX, ResolutionY, ResolutionBPP, 253 ResolutionFreq); 255 254 Reg.closekey; 256 255 end; … … 277 276 if FullScreen then 278 277 begin 279 left := (screen.width - 800) * 3 div 8; 280 top := screen.height - ClientHeight - (screen.height - 600) div 3; 278 Location := Point(Screen.Width, Screen.Height); 279 Location := Point((Screen.width - 800) * 3 div 8, 280 Screen.height - ClientHeight - (Screen.height - 600) div 3); 281 Left := Location.X; 282 Top := Location.Y; 281 283 282 284 r0 := CreateRectRgn(0, 0, ClientWidth, ClientHeight);
Note:
See TracChangeset
for help on using the changeset viewer.