Ignore:
Timestamp:
May 9, 2020, 4:02:07 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Improved HighDPI branch. Imported new changes from trunk branch.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/highdpi/LocalPlayer/Select.pas

    r193 r210  
    55
    66uses
    7   Protocol, ClientTools, Term, ScreenTools, IsoEngine, PVSB, BaseWin, UDpiControls,
    8   LCLIntf, LCLType, LMessages, Messages, SysUtils, Classes, Graphics, Controls, Forms,
     7  UDpiControls, Protocol, ClientTools, Term, ScreenTools, IsoEngine, PVSB, BaseWin,
     8
     9  LCLIntf, LCLType, Messages, SysUtils, Classes, Graphics, Controls, Forms,
    910  ExtCtrls, ButtonB, ButtonBase, Menus, Types;
    1011
     
    196197      if pix and cpType = 0 then
    197198        if (pix and cpIndex = imPalace) and (MyRO.Government <> gAnarchy) then
    198           DpiBitBlt(offscreen.Canvas.Handle, x + 16, y + (16 - 1), xSizeSmall,
    199             ySizeSmall, SmallImp.Canvas.Handle, (MyRO.Government - 1) *
    200             xSizeSmall, ySizeSmall, SRCCOPY)
     199          DpiBitCanvas(offscreen.Canvas, x + 16, y + (16 - 1), xSizeSmall,
     200            ySizeSmall, SmallImp.Canvas, (MyRO.Government - 1) *
     201            xSizeSmall, ySizeSmall)
    201202        else
    202           DpiBitBlt(offscreen.Canvas.Handle, x + 16, y + (16 - 1), xSizeSmall,
    203             ySizeSmall, SmallImp.Canvas.Handle, pix and cpIndex mod 7 *
     203          DpiBitCanvas(offscreen.Canvas, x + 16, y + (16 - 1), xSizeSmall,
     204            ySizeSmall, SmallImp.Canvas, pix and cpIndex mod 7 *
    204205            xSizeSmall, (pix and cpIndex + SystemIconLines * 7) div 7 *
    205             ySizeSmall, SRCCOPY)
     206            ySizeSmall)
    206207      else
    207         DpiBitBlt(offscreen.Canvas.Handle, x + 16, y + (16 - 1), xSizeSmall,
    208           ySizeSmall, SmallImp.Canvas.Handle, (3 + pix and cpIndex) *
    209           xSizeSmall, 0, SRCCOPY)
     208        DpiBitCanvas(offscreen.Canvas, x + 16, y + (16 - 1), xSizeSmall,
     209          ySizeSmall, SmallImp.Canvas, (3 + pix and cpIndex) *
     210          xSizeSmall, 0);
    210211    end;
    211212  end;
     
    567568                  MainTexture.clBevelLight, MainTexture.clBevelShade);
    568569                if AdvIcon[lix] < 84 then
    569                   DpiBitBlt(offscreen.Canvas.Handle, (8 + 16), y0, xSizeSmall,
    570                     ySizeSmall, SmallImp.Canvas.Handle,
     570                  DpiBitCanvas(offscreen.Canvas, (8 + 16), y0, xSizeSmall,
     571                    ySizeSmall, SmallImp.Canvas,
    571572                    (AdvIcon[lix] + SystemIconLines * 7) mod 7 * xSizeSmall,
    572573                    (AdvIcon[lix] + SystemIconLines * 7) div 7 *
    573                     ySizeSmall, SRCCOPY)
     574                    ySizeSmall)
    574575                else
    575576                  Dump(offscreen, HGrSystem, (8 + 16), y0, 36, 20,
     
    577578                    295 + (AdvIcon[lix] - 84) div 8 * 21);
    578579                j := AdvValue[lix] div 1000;
    579                 DpiBitBlt(Handle, (8 + 16 - 4), y0 + 2, 14, 14,
    580                   GrExt[HGrSystem].Mask.Canvas.Handle, 127 + j * 15,
     580                DpiBitCanvas(Canvas, (8 + 16 - 4), y0 + 2, 14, 14,
     581                  GrExt[HGrSystem].Mask.Canvas, 127 + j * 15,
    581582                  85, SRCAND);
    582583                Sprite(offscreen, HGrSystem, (8 + 16 - 5), y0 + 1, 14, 14,
     
    672673              8 + 16 + xSizeSmall, y0 - 15 + (16 - 1 + ySizeSmall),
    673674              MainTexture.clBevelLight, MainTexture.clBevelShade);
    674             DpiBitBlt(offscreen.Canvas.Handle, 8 + 16, y0 - 15 + (16 - 1),
    675               xSizeSmall, ySizeSmall, SmallImp.Canvas.Handle,
    676               (lix - 1) * xSizeSmall, ySizeSmall, SRCCOPY);
     675            DpiBitCanvas(offscreen.Canvas, 8 + 16, y0 - 15 + (16 - 1),
     676              xSizeSmall, ySizeSmall, SmallImp.Canvas,
     677              (lix - 1) * xSizeSmall, ySizeSmall);
    677678          end
    678679        end;
     
    815816        LoweredTextOut(Canvas, -1, MainTexture, xScreen + 10,
    816817          ClientHeight - 29, s);
    817         BitBltCanvas(ScienceNationDot.Canvas, 0, 0, 17, 17, Canvas,
    818           xScreen - 10, ClientHeight - 27, SRCCOPY);
     818        DpiBitCanvas(ScienceNationDot.Canvas, 0, 0, 17, 17, Canvas,
     819          xScreen - 10, ClientHeight - 27);
    819820        ImageOp_BCC(ScienceNationDot, Templates, 0, 0, 114, 211, 17, 17,
    820821          MainTexture.clBevelShade, Tribe[ScienceNation].Color);
    821         DpiBitBlt(Canvas.Handle, xScreen - 10, ClientHeight - 27, 17, 17,
    822           ScienceNationDot.Canvas.Handle, 0, 0, SRCCOPY);
     822        DpiBitCanvas(Canvas, xScreen - 10, ClientHeight - 27, 17, 17,
     823          ScienceNationDot.Canvas, 0, 0);
    823824      end;
    824825    end
Note: See TracChangeset for help on using the changeset viewer.