Changeset 193 for branches/highdpi/Start.pas
- Timestamp:
- May 7, 2020, 7:05:57 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/Start.pas
r179 r193 256 256 end; // default AI not found, use any 257 257 258 DirectDlg.Left := ( Screen.Width - DirectDlg.Width) div 2;259 DirectDlg.Top := ( Screen.Height - DirectDlg.Height) div 2;258 DirectDlg.Left := (DpiScreen.Width - DirectDlg.Width) div 2; 259 DirectDlg.Top := (DpiScreen.Height - DirectDlg.Height) div 2; 260 260 261 261 if FullScreen then 262 262 begin 263 Location := Point(( Screen.Width - 800) * 3 div 8,264 Screen.Height - Height - (Screen.Height - 600) div 3);263 Location := Point((DpiScreen.Width - 800) * 3 div 8, 264 DpiScreen.Height - Height - (DpiScreen.Height - 600) div 3); 265 265 Left := Location.X; 266 266 Top := Location.Y; … … 279 279 else 280 280 begin 281 Left := ( Screen.Width - Width) div 2;282 Top := ( Screen.Height - Height) div 2;281 Left := (DpiScreen.Width - Width) div 2; 282 Top := (DpiScreen.Height - Height) div 2; 283 283 end; 284 284 … … 611 611 h := ClientHeight - ActionBottomBorder - 612 612 (yAction + SelectedAction * ActionPitch - 8); 613 BitBltCanvas(LogoBuffer.Canvas, 0, 0, w, h, Canvas, 613 //BitBltCanvas(LogoBuffer.Canvas, 0, 0, w, h, Canvas, 614 // ActionSideBorder + i * wBuffer, yAction + SelectedAction * ActionPitch 615 // - 8, SRCCOPY); 616 BitBlt(LogoBuffer.Canvas.Handle, 0, 0, w, h, Canvas.Handle, 614 617 ActionSideBorder + i * wBuffer, yAction + SelectedAction * ActionPitch 615 618 - 8, SRCCOPY); … … 879 882 EmptyPicture.BeginUpdate; 880 883 PicturePixel.Init(EmptyPicture); 881 for y := 0 to 63do begin882 for x := 0 to 64- 1 do begin884 for y := 0 to ScaleToVcl(64) - 1 do begin 885 for x := 0 to ScaleToVcl(64) - 1 do begin 883 886 PicturePixel.Pixel^.B := Max(PicturePixel.Pixel^.B - 28, 0); 884 887 PicturePixel.Pixel^.G := Max(PicturePixel.Pixel^.G - 28, 0); … … 1049 1052 Mini.BeginUpdate; 1050 1053 MiniPixel.Init(Mini); 1051 for y := 0 to MiniHeight- 1 do begin1052 for x := 0 to MiniWidth- 1 do begin1054 for y := 0 to ScaleToVcl(MiniHeight) - 1 do begin 1055 for x := 0 to ScaleToVcl(MiniWidth) - 1 do begin 1053 1056 for i := 0 to 1 do begin 1054 xm := (x * 2 + i + y and 1) mod ( MiniWidth* 2);1057 xm := (x * 2 + i + y and 1) mod (ScaleToVcl(MiniWidth) * 2); 1055 1058 MiniPixel.SetX(xm); 1056 1059 cm := MiniColors
Note:
See TracChangeset
for help on using the changeset viewer.