Changeset 179 for branches/highdpi/LocalPlayer/Term.pas
- Timestamp:
- Jun 23, 2019, 9:12:54 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/LocalPlayer/Term.pas
r178 r179 2746 2746 begin 2747 2747 if AILogo[pLogo] <> nil then 2748 BitBlt(Canvas.Handle, (xRightPanel + 10) - (16 + 64),2748 DpiBitBlt(Canvas.Handle, (xRightPanel + 10) - (16 + 64), 2749 2749 ClientHeight - PanelHeight, 64, 64, AILogo[pLogo].Canvas.Handle, 2750 2750 0, 0, SRCCOPY); … … 4042 4042 begin 4043 4043 if xMap < 0 then 4044 BitBlt(Canvas.Handle, MapOffset, TopBarHeight, width + xMap,4044 DpiBitBlt(Canvas.Handle, MapOffset, TopBarHeight, width + xMap, 4045 4045 height + yMap, Buffer.Canvas.Handle, -xMap, -yMap, SRCCOPY) 4046 4046 else 4047 BitBlt(Canvas.Handle, xMap + MapOffset, TopBarHeight, width,4047 DpiBitBlt(Canvas.Handle, xMap + MapOffset, TopBarHeight, width, 4048 4048 height + yMap, Buffer.Canvas.Handle, 0, -yMap, SRCCOPY) 4049 4049 end … … 4051 4051 begin 4052 4052 if xMap < 0 then 4053 BitBlt(Canvas.Handle, MapOffset, TopBarHeight + yMap, width + xMap,4053 DpiBitBlt(Canvas.Handle, MapOffset, TopBarHeight + yMap, width + xMap, 4054 4054 height, Buffer.Canvas.Handle, -xMap, 0, SRCCOPY) 4055 4055 else 4056 BitBlt(Canvas.Handle, xMap + MapOffset, TopBarHeight + yMap, width,4056 DpiBitBlt(Canvas.Handle, xMap + MapOffset, TopBarHeight + yMap, width, 4057 4057 height, Buffer.Canvas.Handle, 0, 0, SRCCOPY); 4058 4058 end … … 4325 4325 procedure TMainScreen.CopyMiniToPanel; 4326 4326 begin 4327 BitBlt(Panel.Canvas.Handle, xMini + 2, yMini + 2, G.lx * 2, G.ly,4327 DpiBitBlt(Panel.Canvas.Handle, xMini + 2, yMini + 2, G.lx * 2, G.ly, 4328 4328 Mini.Canvas.Handle, 0, 0, SRCCOPY); 4329 4329 if MarkCityLoc >= 0 then … … 4414 4414 ClientWidth - xPalace + xSizeBig + 1, yPalace + ySizeBig + 1, 4415 4415 $FFFFFF, $B0B0B0); 4416 BitBlt(Panel.Canvas.Handle, ClientWidth - xPalace, yPalace, xSizeBig,4416 DpiBitBlt(Panel.Canvas.Handle, ClientWidth - xPalace, yPalace, xSizeBig, 4417 4417 ySizeBig, GrExt[HGrSystem2].Data.Canvas.Handle, 70, 123, SRCCOPY); 4418 4418 end … … 5272 5272 PaintLoc(MouseLoc, 2); 5273 5273 MiniPaint; 5274 BitBlt(Panel.Canvas.Handle, xMini + 2, yMini + 2, G.lx * 2, G.ly,5274 DpiBitBlt(Panel.Canvas.Handle, xMini + 2, yMini + 2, G.lx * 2, G.ly, 5275 5275 Mini.Canvas.Handle, 0, 0, SRCCOPY); 5276 5276 if ywmax <= 0 then … … 6096 6096 for Step := 0 to abs(Step1 - Step0) do 6097 6097 begin 6098 BitBlt(Buffer.Canvas.Handle, 0, 0, xRange, yRange,6098 DpiBitBlt(Buffer.Canvas.Handle, 0, 0, xRange, yRange, 6099 6099 offscreen.Canvas.Handle, xMin, yMin, SRCCOPY); 6100 6100 if Step1 <> Step0 then … … 6138 6138 if Restore then 6139 6139 begin 6140 BitBlt(Buffer.Canvas.Handle, 0, 0, xRange, yRange, offscreen.Canvas.Handle,6140 DpiBitBlt(Buffer.Canvas.Handle, 0, 0, xRange, yRange, offscreen.Canvas.Handle, 6141 6141 xMin, yMin, SRCCOPY); 6142 6142 PaintBufferToScreen(xMin, yMin, xRange, yRange); … … 7489 7489 InitPopup(Popup); 7490 7490 if FullScreen then 7491 Popup.Popup(Left + T Control(Sender).Left, Top + TControl(Sender).Top)7491 Popup.Popup(Left + TDpiControl(Sender).Left, Top + TDpiControl(Sender).Top) 7492 7492 else 7493 Popup.Popup(Left + T Control(Sender).Left + 4, Top + TControl(Sender).Top +7493 Popup.Popup(Left + TDpiControl(Sender).Left + 4, Top + TDpiControl(Sender).Top + 7494 7494 GetSystemMetrics(SM_CYCAPTION) + 4); 7495 7495 end; … … 7553 7553 yw := ywmax; 7554 7554 end; 7555 BitBlt(Buffer.Canvas.Handle, 0, 0, G.lx * 2, G.ly, Mini.Canvas.Handle, 0,7555 DpiBitBlt(Buffer.Canvas.Handle, 0, 0, G.lx * 2, G.ly, Mini.Canvas.Handle, 0, 7556 7556 0, SRCCOPY); 7557 7557 if ywmax <= 0 then … … 7563 7563 x - xMini - 2 + MapWidth div (xxt * 2) - 1, yw + MapHeight div yyt - 7564 7564 2, MainTexture.clMark, MainTexture.clMark); 7565 BitBlt(Panel.Canvas.Handle, xMini + 2, yMini + 2, G.lx * 2, G.ly,7565 DpiBitBlt(Panel.Canvas.Handle, xMini + 2, yMini + 2, G.lx * 2, G.ly, 7566 7566 Buffer.Canvas.Handle, 0, 0, SRCCOPY); 7567 7567 MainOffscreenPaint; … … 7715 7715 Brush.Style := bsClear; 7716 7716 end; 7717 BitBlt(Canvas.Handle, MapOffset, TopBarHeight, MapWidth, MapHeight - overlap,7717 DpiBitBlt(Canvas.Handle, MapOffset, TopBarHeight, MapWidth, MapHeight - overlap, 7718 7718 offscreen.Canvas.Handle, 0, 0, SRCCOPY); 7719 BitBlt(Canvas.Handle, 0, 0, ClientWidth, TopBarHeight, TopBar.Canvas.Handle,7719 DpiBitBlt(Canvas.Handle, 0, 0, ClientWidth, TopBarHeight, TopBar.Canvas.Handle, 7720 7720 0, 0, SRCCOPY); 7721 7721 if xMidPanel > MapOffset then 7722 BitBlt(Canvas.Handle, xMidPanel, TopBarHeight + MapHeight - overlap,7722 DpiBitBlt(Canvas.Handle, xMidPanel, TopBarHeight + MapHeight - overlap, 7723 7723 ClientWidth div 2 - xMidPanel, overlap, offscreen.Canvas.Handle, 7724 7724 xMidPanel - MapOffset, MapHeight - overlap, SRCCOPY) 7725 7725 else 7726 BitBlt(Canvas.Handle, MapOffset, TopBarHeight + MapHeight - overlap,7726 DpiBitBlt(Canvas.Handle, MapOffset, TopBarHeight + MapHeight - overlap, 7727 7727 ClientWidth div 2 - MapOffset, overlap, offscreen.Canvas.Handle, 0, 7728 7728 MapHeight - overlap, SRCCOPY); 7729 7729 if xRightPanel < MapOffset + MapWidth then 7730 BitBlt(Canvas.Handle, ClientWidth div 2, TopBarHeight + MapHeight - overlap,7730 DpiBitBlt(Canvas.Handle, ClientWidth div 2, TopBarHeight + MapHeight - overlap, 7731 7731 xRightPanel - ClientWidth div 2, overlap, offscreen.Canvas.Handle, 7732 7732 ClientWidth div 2 - MapOffset, MapHeight - overlap, SRCCOPY) 7733 7733 else 7734 BitBlt(Canvas.Handle, ClientWidth div 2, TopBarHeight + MapHeight - overlap,7734 DpiBitBlt(Canvas.Handle, ClientWidth div 2, TopBarHeight + MapHeight - overlap, 7735 7735 MapOffset + MapWidth - ClientWidth div 2, overlap, 7736 7736 offscreen.Canvas.Handle, ClientWidth div 2 - MapOffset, 7737 7737 MapHeight - overlap, SRCCOPY); 7738 BitBlt(Canvas.Handle, 0, TopBarHeight + MapHeight - overlap, xMidPanel,7738 DpiBitBlt(Canvas.Handle, 0, TopBarHeight + MapHeight - overlap, xMidPanel, 7739 7739 overlap, Panel.Canvas.Handle, 0, 0, SRCCOPY); 7740 BitBlt(Canvas.Handle, xRightPanel, TopBarHeight + MapHeight - overlap,7740 DpiBitBlt(Canvas.Handle, xRightPanel, TopBarHeight + MapHeight - overlap, 7741 7741 Panel.width - xRightPanel, overlap, Panel.Canvas.Handle, xRightPanel, 7742 7742 0, SRCCOPY); 7743 BitBlt(Canvas.Handle, 0, TopBarHeight + MapHeight, Panel.width,7743 DpiBitBlt(Canvas.Handle, 0, TopBarHeight + MapHeight, Panel.width, 7744 7744 PanelHeight - overlap, Panel.Canvas.Handle, 0, overlap, SRCCOPY); 7745 7745 if (pLogo >= 0) and (G.RO[pLogo] = nil) and (AILogo[pLogo] <> nil) then 7746 BitBlt(Canvas.Handle, xRightPanel + 10 - (16 + 64),7746 DpiBitBlt(Canvas.Handle, xRightPanel + 10 - (16 + 64), 7747 7747 ClientHeight - PanelHeight, 64, 64, AILogo[pLogo].Canvas.Handle, 0, 7748 7748 0, SRCCOPY); … … 7753 7753 r0: HRgn; 7754 7754 begin 7755 r0 := CreateRectRgn(Left, Top, Rigth, Bottom);7755 r0 := DpiCreateRectRgn(Left, Top, Rigth, Bottom); 7756 7756 InvalidateRgn(Handle, r0, false); 7757 7757 DeleteObject(r0); … … 7763 7763 r0, r1: HRgn; 7764 7764 begin 7765 r0 := CreateRectRgn(Left, Top, Rigth, Bottom);7765 r0 := DpiCreateRectRgn(Left, Top, Rigth, Bottom); 7766 7766 for i := 0 to ControlCount - 1 do 7767 7767 if not(Controls[i] is TArea) and Controls[i].Visible then 7768 7768 begin 7769 7769 with Controls[i].BoundsRect do 7770 r1 := CreateRectRgn(Left, Top, Right, Bottom);7770 r1 := DpiCreateRectRgn(Left, Top, Right, Bottom); 7771 7771 CombineRgn(r0, r0, r1, RGN_DIFF); 7772 7772 DeleteObject(r1);
Note:
See TracChangeset
for help on using the changeset viewer.