Changeset 179 for branches/highdpi/Start.pas
- Timestamp:
- Jun 23, 2019, 9:12:54 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/Start.pas
r178 r179 266 266 Top := Location.Y; 267 267 268 r0 := CreateRectRgn(0, 0, Width, Height);269 r1 := CreateRectRgn(TabOffset + 4 * TabSize + 2, 0, Width, TabHeight);268 r0 := DpiCreateRectRgn(0, 0, Width, Height); 269 r1 := DpiCreateRectRgn(TabOffset + 4 * TabSize + 2, 0, Width, TabHeight); 270 270 CombineRgn(r0, r0, r1, RGN_DIFF); 271 271 DeleteObject(r1); 272 r1 := CreateRectRgn(QuitBtn.Left, QuitBtn.Top, QuitBtn.Left + QuitBtn.Width,272 r1 := DpiCreateRectRgn(QuitBtn.Left, QuitBtn.Top, QuitBtn.Left + QuitBtn.Width, 273 273 QuitBtn.top + QuitBtn.Height); 274 274 CombineRgn(r0, r0, r1, RGN_OR); … … 326 326 Brains[0].Picture := TDpiBitmap.Create; 327 327 Brains[0].Picture.SetSize(64, 64); 328 BitBlt(Brains[0].Picture.Canvas.Handle, 0, 0, 64, 64,328 DpiBitBlt(Brains[0].Picture.Canvas.Handle, 0, 0, 64, 64, 329 329 GrExt[HGrSystem2].Data.Canvas.Handle, 1, 111, SRCCOPY); 330 330 Brains[1].Picture := TDpiBitmap.Create; 331 331 Brains[1].Picture.SetSize(64, 64); 332 BitBlt(Brains[1].Picture.Canvas.Handle, 0, 0, 64, 64,332 DpiBitBlt(Brains[1].Picture.Canvas.Handle, 0, 0, 64, 64, 333 333 GrExt[HGrSystem2].Data.Canvas.Handle, 66, 111, SRCCOPY); 334 334 Brains[2].Picture := TDpiBitmap.Create; 335 335 Brains[2].Picture.SetSize(64, 64); 336 BitBlt(Brains[2].Picture.Canvas.Handle, 0, 0, 64, 64,336 DpiBitBlt(Brains[2].Picture.Canvas.Handle, 0, 0, 64, 64, 337 337 GrExt[HGrSystem2].Data.Canvas.Handle, 131, 111, SRCCOPY); 338 338 Brains[3].Picture := TDpiBitmap.Create; 339 339 Brains[3].Picture.SetSize(64, 64); 340 BitBlt(Brains[3].Picture.Canvas.Handle, 0, 0, 64, 64,340 DpiBitBlt(Brains[3].Picture.Canvas.Handle, 0, 0, 64, 64, 341 341 GrExt[HGrSystem2].Data.Canvas.Handle, 131, 46, SRCCOPY); 342 342 … … 408 408 r0, r1: HRgn; 409 409 begin 410 r0 := CreateRectRgn(x0, y0, x1, y1);410 r0 := DpiCreateRectRgn(x0, y0, x1, y1); 411 411 for i := 0 to ControlCount - 1 do 412 412 if not (Controls[i] is TArea) and Controls[i].Visible then 413 413 begin 414 414 with Controls[i].BoundsRect do 415 r1 := CreateRectRgn(left, top, Right, Bottom);415 r1 := DpiCreateRectRgn(left, top, Right, Bottom); 416 416 CombineRgn(r0, r0, r1, RGN_DIFF); 417 417 DeleteObject(r1); … … 419 419 if not invalidateTab0 then 420 420 begin 421 r1 := CreateRectRgn(0, 0, 6 + 36, 3 + 38); // tab 0 icon421 r1 := DpiCreateRectRgn(0, 0, 6 + 36, 3 + 38); // tab 0 icon 422 422 CombineRgn(r0, r0, r1, RGN_DIFF); 423 423 DeleteObject(r1); … … 496 496 xActionIcon - 2, y - 2, SRCCOPY); 497 497 GlowFrame(LogoBuffer, 8, 8, 34, 34, $202020); 498 BitBlt(Canvas.Handle, xActionIcon - 2, y - 2, 50, 50,498 DpiBitBlt(Canvas.Handle, xActionIcon - 2, y - 2, 50, 50, 499 499 LogoBuffer.Canvas.Handle, 0, 0, SRCCOPY); 500 BitBlt(Canvas.Handle, xActionIcon, y, 40, 40, BigImp.Canvas.Handle,500 DpiBitBlt(Canvas.Handle, xActionIcon, y, 40, 40, BigImp.Canvas.Handle, 501 501 (IconIndex mod 7) * xSizeBig + 8, (IconIndex div 7) * ySizeBig, SRCCOPY); 502 502 RFrame(Canvas, xActionIcon - 1, y - 1, xActionIcon + 40, y + 40, … … 595 595 ImageOp_BCC(LogoBuffer, Templates, 10, 27, 155, 38 + 27, 26, 9, $BFBF20, 596 596 $4040DF); // logo part 2 597 BitBlt(Canvas.Handle, 6, 3 + 2 * integer(Tab <> tbMain), 36, 36,597 DpiBitBlt(Canvas.Handle, 6, 3 + 2 * integer(Tab <> tbMain), 36, 36, 598 598 LogoBuffer.Canvas.Handle, 0, 0, SRCCOPY); 599 599 … … 615 615 - 8, SRCCOPY); 616 616 MakeBlue(LogoBuffer, 0, 0, w, h); 617 BitBlt(Canvas.Handle, ActionSideBorder + i * wBuffer,617 DpiBitBlt(Canvas.Handle, ActionSideBorder + i * wBuffer, 618 618 yAction + SelectedAction * ActionPitch - 8, w, h, 619 619 LogoBuffer.Canvas.Handle, 0, 0, SRCCOPY); … … 643 643 ImageOp_BCC(LogoBuffer, Templates, 0, 0, 1, 400, 91, 25, 0, 644 644 Colors.Canvas.Pixels[clkAge0 - 1, cliDimmedText]); 645 BitBlt(Canvas.Handle, xActionIcon, y + 2, 91, 25,645 DpiBitBlt(Canvas.Handle, xActionIcon, y + 2, 91, 25, 646 646 LogoBuffer.Canvas.Handle, 0, 0, SRCCOPY); 647 647 end; … … 668 668 if (i < 13) or (i > 17) then 669 669 begin 670 BitBlt(Canvas.Handle, 9 + i * 27, yLogo - 2, wOrna, hOrna,670 DpiBitBlt(Canvas.Handle, 9 + i * 27, yLogo - 2, wOrna, hOrna, 671 671 GrExt[HGrSystem2].Mask.Canvas.Handle, xOrna, yOrna, SRCAND); 672 BitBlt(Canvas.Handle, 9 + i * 27, yLogo - 2, wOrna, hOrna,672 DpiBitBlt(Canvas.Handle, 9 + i * 27, yLogo - 2, wOrna, hOrna, 673 673 GrExt[HGrSystem2].Data.Canvas.Handle, xOrna, yOrna, SRCPAINT); 674 674 end; … … 687 687 if Assigned(PlayersBrain[I]) and (PlayersBrain[i].Kind in [btTerm, btRandom, btAI]) then 688 688 begin 689 BitBlt(Canvas.Handle, xBrain[i] - 18, yBrain[i] + 19, 12, 14,689 DpiBitBlt(Canvas.Handle, xBrain[i] - 18, yBrain[i] + 19, 12, 14, 690 690 GrExt[HGrSystem].Data.Canvas.Handle, 134 + (Difficulty[i] - 1) * 691 691 13, 28, SRCCOPY); … … 707 707 PlayerSlots[I].MultiBtn.left + 12, PlayerSlots[I].MultiBtn.top + 12, 708 708 MainTexture.clBevelShade, MainTexture.clBevelLight); 709 BitBlt(Canvas.Handle, xBrain[i] - 31, yBrain[i], 13, 12,709 DpiBitBlt(Canvas.Handle, xBrain[i] - 31, yBrain[i], 13, 12, 710 710 GrExt[HGrSystem].Data.Canvas.Handle, 88, 47, SRCCOPY); 711 711 end; … … 752 752 if (i < 2) or (i > 6) then 753 753 begin 754 BitBlt(Canvas.Handle, 9 + i * 27, yLogo - 2, wOrna, hOrna,754 DpiBitBlt(Canvas.Handle, 9 + i * 27, yLogo - 2, wOrna, hOrna, 755 755 GrExt[HGrSystem2].Mask.Canvas.Handle, xOrna, yOrna, SRCAND); 756 BitBlt(Canvas.Handle, 9 + i * 27, yLogo - 2, wOrna, hOrna,756 DpiBitBlt(Canvas.Handle, 9 + i * 27, yLogo - 2, wOrna, hOrna, 757 757 GrExt[HGrSystem2].Data.Canvas.Handle, xOrna, yOrna, SRCPAINT); 758 758 end; … … 848 848 if MiniMode = mmPicture then 849 849 begin 850 BitBlt(Canvas.Handle, xMini + 2, yMini + 2, MiniWidth * 2, MiniHeight,850 DpiBitBlt(Canvas.Handle, xMini + 2, yMini + 2, MiniWidth * 2, MiniHeight, 851 851 Mini.Canvas.Handle, 0, 0, SRCCOPY); 852 852 if Page = pgStartRandom then
Note:
See TracChangeset
for help on using the changeset viewer.