Changeset 316 for trunk/Packages
- Timestamp:
- Mar 18, 2021, 11:31:20 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CevoComponents/ScreenTools.pas
r315 r316 49 49 procedure MakeRed(Dst: TBitmap; X, Y, Width, Height: Integer); 50 50 procedure ImageOp_B(dst, Src: TBitmap; xDst, yDst, xSrc, ySrc, Width, Height: Integer); 51 procedure ImageOp_BCC(dst, Src: TBitmap; 52 xDst, yDst, xSrc, ySrc, Width, Height, Color1, Color2: Integer); 51 procedure ImageOp_BCC(Dst, Src: TBitmap; 52 xDst, yDst, xSrc, ySrc, Width, Height, Color1, Color2: Integer); overload; 53 procedure ImageOp_BCC(Dst, Src: TBitmap; 54 DstPos: TPoint; SrcRect: TRect; Color1, Color2: Integer); overload; 53 55 procedure ImageOp_CBC(Dst, Src: TBitmap; xDst, yDst, xSrc, ySrc, Width, Height, 54 56 Color0, Color2: Integer); … … 115 117 116 118 // template positions in Templates.png 117 xLogo = 1;118 yLogo = 1;119 wLogo = 122;120 hLogo = 23; // logo121 xBBook = 1;122 yBBook = 74;123 wBBook = 143;124 hBBook = 73; // big book125 xSBook = 72;126 ySBook = 37;127 wSBook = 72;128 hSBook = 36; // small book129 119 xNation = 1; 130 120 yNation = 25; … … 177 167 Ornament: TGraphicSetItem; 178 168 Logo: TGraphicSetItem; 169 BigBook: TGraphicSetItem; 170 SmallBook: TGraphicSetItem; 171 MenuLogo: TGraphicSetItem; 179 172 ClickFrameColor: Integer; 180 173 MainTextureAge: Integer; … … 734 727 Src.EndUpdate; 735 728 dst.EndUpdate; 729 end; 730 731 procedure ImageOp_BCC(Dst, Src: TBitmap; DstPos: TPoint; SrcRect: TRect; 732 Color1, Color2: Integer); 733 begin 734 ImageOp_BCC(Dst, Src, DstPos.X, DstPos.Y, SrcRect.Left, SrcRect.Top, 735 SrcRect.Width, SrcRect.Height, Color1, Color2); 736 736 end; 737 737 … … 1498 1498 // TODO: Explicitly clear background to black but in fact BitBlt SRCCOPY should do it 1499 1499 LogoBuffer.Canvas.FillRect(0, 0, LogoBuffer.Width, LogoBuffer.Height); 1500 BitBltCanvas(LogoBuffer.Canvas, 0, 0, wLogo, hLogo, ca, x, y);1501 ImageOp_BCC(LogoBuffer, Templates.Data, 0, 0, 1, 1, wLogo, hLogo,1500 BitBltCanvas(LogoBuffer.Canvas, 0, 0, Logo.Width, Logo.Height, ca, x, y); 1501 ImageOp_BCC(LogoBuffer, Templates.Data, Point(0, 0), Logo.BoundsRect, 1502 1502 clLight, clShade); 1503 BitBltCanvas(ca, x, y, wLogo, hLogo, LogoBuffer.Canvas, 0, 0);1503 BitBltCanvas(ca, x, y, Logo.Width, Logo.Height, LogoBuffer.Canvas, 0, 0); 1504 1504 end; 1505 1505 … … 1682 1682 LoadFonts; 1683 1683 Templates := LoadGraphicSet2('Templates.png'); 1684 Logo := Templates.GetItem('Logo'); 1685 BigBook := Templates.GetItem('BigBook'); 1686 SmallBook := Templates.GetItem('SmallBook'); 1687 MenuLogo := Templates.GetItem('MenuLogo'); 1684 1688 LoadGraphicFile(Colors, GetGraphicsDir + DirectorySeparator + 'Colors.png'); 1685 1689 LoadGraphicFile(Paper, GetGraphicsDir + DirectorySeparator + 'Paper.jpg'); … … 1698 1702 ResolutionChanged := False; 1699 1703 {$ENDIF} 1700 1701 LogoBuffer := TBitmap.Create;1702 LogoBuffer.PixelFormat := pf24bit;1703 LogoBuffer.SetSize(wBBook, hBBook);1704 1704 1705 1705 for Section := Low(TFontType) to High(TFontType) do … … 1728 1728 1729 1729 LoadAssets; 1730 1731 LogoBuffer := TBitmap.Create; 1732 LogoBuffer.PixelFormat := pf24bit; 1733 LogoBuffer.SetSize(BigBook.Width, BigBook.Height); 1730 1734 end; 1731 1735
Note:
See TracChangeset
for help on using the changeset viewer.