- Timestamp:
- Apr 12, 2024, 8:58:58 PM (8 months ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/IsoEngine.pas
r530 r533 380 380 for Y := -2 to 6 do 381 381 BitBltBitmap(LandPatch, (X + 2) * (xxt * 2), (Y + 2) * yyt, xxt, 382 yyt, HGrTerrain.Data, xSrc + xxt, ySrc + yyt, 383 SRCPAINT); 382 yyt, HGrTerrain.Data, xSrc + xxt, ySrc + yyt, SRCPAINT); 384 383 for Y := -2 to 6 do 385 384 BitBltBitmap(LandPatch, (X + 2) * (xxt * 2) + xxt, (Y + 2) * yyt, 386 xxt, yyt, HGrTerrain.Data, xSrc, ySrc + yyt, 387 SRCPAINT); 385 xxt, yyt, HGrTerrain.Data, xSrc, ySrc + yyt, SRCPAINT); 388 386 for Y := -2 to 6 do 389 387 BitBltBitmap(LandPatch, (X + 2) * (xxt * 2), (Y + 2) * yyt, xxt, … … 413 411 for X := 0 to 7 do 414 412 BitBltBitmap(LandMore, (X + 2) * (xxt * 2) - xxt, (Y + 2) * yyt, 415 xxt * 2, yyt, HGrTerrain.Data, xSrc, ySrc + yyt, 416 SRCPAINT); 413 xxt * 2, yyt, HGrTerrain.Data, xSrc, ySrc + yyt, SRCPAINT); 417 414 for X := -2 to 6 do 418 415 BitBltBitmap(LandMore, (X + 2) * (xxt * 2), (Y + 2) * yyt, … … 432 429 begin 433 430 BitBltBitmap(OceanPatch, X * (xxt * 2), Y * yyt, xxt, yyt, 434 HGrTerrain.Data, xSrc + xxt, ySrc + yyt, 435 SRCPAINT); 431 HGrTerrain.Data, xSrc + xxt, ySrc + yyt, SRCPAINT); 436 432 BitBltBitmap(OceanPatch, X * (xxt * 2) + xxt, Y * yyt, xxt, yyt, 437 433 HGrTerrain.Data, xSrc, ySrc + yyt, SRCPAINT); … … 456 452 begin 457 453 BitBltBitmap(OceanMore, X * (xxt * 2), Y * yyt, xxt, yyt, 458 HGrTerrain.Data, xSrc + xxt, ySrc + yyt, 459 SRCPAINT); 454 HGrTerrain.Data, xSrc + xxt, ySrc + yyt, SRCPAINT); 460 455 BitBltBitmap(OceanMore, X * (xxt * 2) + xxt, Y * yyt, xxt, yyt, 461 456 HGrTerrain.Data, xSrc, ySrc + yyt, SRCPAINT); -
trunk/LocalPlayer/Term.lfm
r456 r533 33 33 LCLVersion = '2.2.0.4' 34 34 Scaled = False 35 WindowState = ws Maximized35 WindowState = wsNormal 36 36 object UnitBtn: TButtonB 37 37 Tag = 14 -
trunk/LocalPlayer/Term.pas
r531 r533 245 245 procedure FormResize(Sender: TObject); 246 246 procedure PanelBtnClick(Sender: TObject); 247 procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean);248 247 procedure Toggle(Sender: TObject); 249 248 procedure PanelBoxMouseMove(Sender: TObject; Shift: TShiftState; … … 260 259 Shift: TShiftState; X, Y: Integer); 261 260 procedure FormPaint(Sender: TObject); 261 procedure FormClose(Sender: TObject; var Action: TCloseAction); 262 procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean); 263 procedure FormShow(Sender: TObject); 262 264 procedure mRepClicked(Sender: TObject); 263 265 procedure mLogClick(Sender: TObject); 264 procedure FormClose(Sender: TObject; var Action: TCloseAction);265 procedure FormShow(Sender: TObject);266 266 procedure Radio(Sender: TObject); 267 267 procedure mManipClick(Sender: TObject); … … 329 329 NoMap: TIsoMap; 330 330 NoMapPanel: TIsoMap; 331 LastResizeWidth: Integer; 332 LastResizeHeight: Integer; 333 LastWindowState: TWindowState; 331 334 // Forms 332 335 FWondersDlg: TWondersDlg; … … 2815 2818 Brush.Style := TBrushStyle.bsClear; 2816 2819 end; 2817 FormResize(nil); // place mini map correctly according to its size2818 2820 Show; 2819 2821 Update; … … 4197 4199 MiniFrame, MaxMapWidth: Integer; 4198 4200 begin 4201 if (LastResizeWidth = Width) and (LastResizeHeight = Height) and 4202 (LastWindowState = WindowState) then Exit 4203 else begin 4204 LastResizeWidth := Width; 4205 LastResizeHeight := Height; 4206 LastWindowState := WindowState; 4207 end; 4208 4199 4209 SmallScreen := Width < 1024; 4200 4210 with MainMap do begin … … 7091 7101 if not Active and (CurrentWindowState = TWindowState.wsFullScreen) then begin 7092 7102 if PrevWindowState = TWindowState.wsMaximized then begin 7093 CurrentWindowState := TWindowState.ws Maximized;7103 CurrentWindowState := TWindowState.wsNormal; 7094 7104 WindowState := CurrentWindowState; 7095 7105 end else begin 7096 CurrentWindowState := TWindowState.wsNormal;7106 CurrentWindowState := PrevWindowState; 7097 7107 WindowState := CurrentWindowState; 7098 7108 WindowState := TWindowState.wsFullScreen; … … 8106 8116 procedure TMainScreen.FormShow(Sender: TObject); 8107 8117 begin 8118 if FullScreen then BoundsRect := Bounds(0, 0, Screen.Width, Screen.Height) 8119 else BoundsRect := TermBounds; 8108 8120 SetFullScreen(FullScreen); 8121 FormResize(nil); // place mini map correctly according to its size 8109 8122 Timer1.Enabled := True; 8110 8123 end; … … 8112 8125 procedure TMainScreen.FormClose(Sender: TObject; var Action: TCloseAction); 8113 8126 begin 8127 TermBounds := BoundsRect; 8114 8128 Timer1.Enabled := False; 8115 8129 end; -
trunk/Packages/CevoComponents/EOTButton.pas
r531 r533 85 85 end else begin 86 86 Brush.Color := $0000FF; 87 FrameRect(Rect(0, 0, 48, 48)) 87 FrameRect(Rect(0, 0, 48, 48)); 88 88 end; 89 89 end; -
trunk/Packages/CevoComponents/ScreenTools.pas
r531 r533 193 193 DrawBuffer: TBitmap; 194 194 FullScreen: Boolean; 195 TermBounds: TRect; 195 196 GenerateNames: Boolean; 196 197 InitOrnamentDone: Boolean; -
trunk/Start.pas
r531 r533 407 407 else ScreenMode := 1; 408 408 FullScreen := ScreenMode > 0; 409 if ValueExists('TermLeft') then TermBounds.Left := ReadInteger('TermLeft') 410 else TermBounds.Left := 0; 411 if ValueExists('TermTop') then TermBounds.Top := ReadInteger('TermTop') 412 else TermBounds.Top := 0; 413 if ValueExists('TermWidth') then TermBounds.Width := ReadInteger('TermWidth') 414 else TermBounds.Width := 800; 415 if ValueExists('TermHeight') then TermBounds.Height := ReadInteger('TermHeight') 416 else TermBounds.Height := 480; 417 409 418 if ValueExists('MultiControl') then 410 419 MultiControl := ReadInteger('MultiControl') … … 444 453 if FullScreen then WriteInteger('ScreenMode', 1) 445 454 else WriteInteger('ScreenMode', 0); 455 WriteInteger('TermWidth', TermBounds.Width); 456 WriteInteger('TermHeight', TermBounds.Height); 457 WriteInteger('TermLeft', TermBounds.Left); 458 WriteInteger('TermTop', TermBounds.Top); 446 459 WriteInteger('MultiControl', MultiControl); 447 460 WriteInteger('StartTab', Integer(ShowTab));
Note:
See TracChangeset
for help on using the changeset viewer.