Ignore:
Timestamp:
Feb 24, 2024, 8:04:26 PM (9 months ago)
Author:
chronos
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/Select.pas

    r522 r530  
    206206      if pix and cpType = 0 then
    207207        if (pix and cpIndex = imPalace) and (MyRO.Government <> gAnarchy) then
    208           BitBltCanvas(Offscreen.Canvas, X + 16, Y + (16 - 1), xSizeSmall,
    209             ySizeSmall, SmallImp.Canvas, (MyRO.Government - 1) *
     208          BitBltBitmap(Offscreen, X + 16, Y + (16 - 1), xSizeSmall,
     209            ySizeSmall, SmallImp, (MyRO.Government - 1) *
    210210            xSizeSmall, ySizeSmall)
    211211        else
    212           BitBltCanvas(Offscreen.Canvas, X + 16, Y + (16 - 1), xSizeSmall,
    213             ySizeSmall, SmallImp.Canvas, pix and cpIndex mod 7 *
     212          BitBltBitmap(Offscreen, X + 16, Y + (16 - 1), xSizeSmall,
     213            ySizeSmall, SmallImp, pix and cpIndex mod 7 *
    214214            xSizeSmall, (pix and cpIndex + SystemIconLines * 7) div 7 *
    215215            ySizeSmall)
    216216      else
    217         BitBltCanvas(Offscreen.Canvas, X + 16, Y + (16 - 1), xSizeSmall,
    218           ySizeSmall, SmallImp.Canvas, (3 + pix and cpIndex) *
     217        BitBltBitmap(Offscreen, X + 16, Y + (16 - 1), xSizeSmall,
     218          ySizeSmall, SmallImp, (3 + pix and cpIndex) *
    219219          xSizeSmall, 0);
    220220    end;
     
    578578                  MainTexture.ColorBevelLight, MainTexture.ColorBevelShade);
    579579                if AdvIcon[lix] < 84 then
    580                   BitBltCanvas(Offscreen.Canvas, (8 + 16), y0, xSizeSmall,
    581                     ySizeSmall, SmallImp.Canvas,
     580                  BitBltBitmap(Offscreen, (8 + 16), y0, xSizeSmall,
     581                    ySizeSmall, SmallImp,
    582582                    (AdvIcon[lix] + SystemIconLines * 7) mod 7 * xSizeSmall,
    583583                    (AdvIcon[lix] + SystemIconLines * 7) div 7 *
     
    588588                    295 + (AdvIcon[lix] - 84) div 8 * 21);
    589589                J := AdvValue[lix] div 1000;
    590                 BitBltCanvas(Offscreen.Canvas, (8 + 16 - 4), y0 + 2, 14, 14,
    591                   HGrSystem.Mask.Canvas, 127 + J * 15,
     590                BitBltBitmap(Offscreen, (8 + 16 - 4), y0 + 2, 14, 14,
     591                  HGrSystem.Mask, 127 + J * 15,
    592592                  85, SRCAND);
    593593                Sprite(Offscreen, HGrSystem, (8 + 16 - 5), y0 + 1, 14, 14,
     
    683683              8 + 16 + xSizeSmall, y0 - 15 + (16 - 1 + ySizeSmall),
    684684              MainTexture.ColorBevelLight, MainTexture.ColorBevelShade);
    685             BitBltCanvas(Offscreen.Canvas, 8 + 16, y0 - 15 + (16 - 1),
    686               xSizeSmall, ySizeSmall, SmallImp.Canvas,
    687               (lix - 1) * xSizeSmall, ySizeSmall);
     685            BitBltBitmap(Offscreen, 8 + 16, y0 - 15 + (16 - 1),
     686              xSizeSmall, ySizeSmall, SmallImp, (lix - 1) * xSizeSmall, ySizeSmall);
    688687          end;
    689688        end;
Note: See TracChangeset for help on using the changeset viewer.