Ignore:
Timestamp:
Jun 23, 2019, 11:57:39 PM (5 years ago)
Author:
chronos
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/highdpi/Packages/CevoComponents/BaseWin.pas

    r178 r180  
    165165procedure TBufferedDrawDlg.VPaint;
    166166begin
    167   BitBlt(Canvas.Handle, 0, 0, ClientWidth, ClientHeight,
     167  DpiBitBlt(Canvas.Handle, 0, 0, ClientWidth, ClientHeight,
    168168    Offscreen.Canvas.Handle, 0, 0, SRCCOPY);
    169169end;
     
    278278  else
    279279    BottomFrame := NarrowFrame;
    280   r0 := CreateRectRgn(SideFrame, TitleHeight, ClientWidth - SideFrame,
     280  r0 := DpiCreateRectRgn(SideFrame, TitleHeight, ClientWidth - SideFrame,
    281281    ClientHeight - BottomFrame);
    282282  for i := 0 to ControlCount - 1 do
     
    284284    begin
    285285      with Controls[i].BoundsRect do
    286         r1 := CreateRectRgn(Left, Top, Right, Bottom);
     286        r1 := DpiCreateRectRgn(Left, Top, Right, Bottom);
    287287      CombineRgn(r0, r0, r1, RGN_DIFF);
    288288      DeleteObject(r1);
     
    454454    end;
    455455
    456   BitBlt(Canvas.Handle, SideFrame, TitleHeight, ClientWidth - 2 * SideFrame,
     456  DpiBitBlt(Canvas.Handle, SideFrame, TitleHeight, ClientWidth - 2 * SideFrame,
    457457    InnerBottom - TitleHeight, Offscreen.Canvas.Handle, 0, 0, SRCCOPY);
    458458end;
     
    464464  if FullCaption then
    465465    exit;
    466   r0 := CreateRectRgn(0, 0, ClientWidth, ClientHeight);
    467   r1 := CreateRectRgn(0, 0, CaptionLeft, TitleHeight - NarrowFrame);
     466  r0 := DpiCreateRectRgn(0, 0, ClientWidth, ClientHeight);
     467  r1 := DpiCreateRectRgn(0, 0, CaptionLeft, TitleHeight - NarrowFrame);
    468468  CombineRgn(r0, r0, r1, RGN_DIFF);
    469469  // DeleteObject(r1);
    470   r1 := CreateRectRgn(ClientWidth - CaptionLeft, 0, ClientWidth,
     470  r1 := DpiCreateRectRgn(ClientWidth - CaptionLeft, 0, ClientWidth,
    471471    TitleHeight - NarrowFrame);
    472472  CombineRgn(r0, r0, r1, RGN_DIFF);
     
    474474  if WideBottom then
    475475  begin
    476     r1 := CreateRectRgn(0, ClientHeight - (WideFrame - NarrowFrame),
     476    r1 := DpiCreateRectRgn(0, ClientHeight - (WideFrame - NarrowFrame),
    477477      CaptionLeft, ClientHeight);
    478478    CombineRgn(r0, r0, r1, RGN_DIFF);
    479479    // DeleteObject(r1);
    480     r1 := CreateRectRgn(ClientWidth - CaptionLeft,
     480    r1 := DpiCreateRectRgn(ClientWidth - CaptionLeft,
    481481      ClientHeight - (WideFrame - NarrowFrame), ClientWidth, ClientHeight);
    482482    CombineRgn(r0, r0, r1, RGN_DIFF);
Note: See TracChangeset for help on using the changeset viewer.