Changeset 565 for trunk/Packages/CevoComponents/ScreenTools.pas
- Timestamp:
- May 1, 2024, 12:08:20 PM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CevoComponents/ScreenTools.pas
r548 r565 75 75 procedure FillRectSeamless(Canvas: TCanvas; x0, y0, x1, y1, xOffset, yOffset: Integer; 76 76 const Texture: TBitmap); 77 procedure PaintBackground(Form: TForm; Left, Top, Width, Height: Integer); 77 procedure PaintBackground(Canvas: TCanvas; Left, Top, Width, Height, FormWidth, 78 FormHeight: Integer); 78 79 procedure Corner(Canvas: TCanvas; X, Y, Kind: Integer; T: TTexture); 79 80 procedure BiColorTextOut(Canvas: TCanvas; clMain, clBack: TColor; X, Y: Integer; S: string); … … 1202 1203 end; 1203 1204 1204 procedure PaintBackground(Form: TForm; Left, Top, Width, Height: Integer); 1205 begin 1206 Fill(Form.Canvas, Left, Top, Width, Height, (MainTexture.Width - Form.ClientWidth) div 1207 2, (MainTexture.Height - Form.ClientHeight) div 2); 1205 procedure PaintBackground(Canvas: TCanvas; Left, Top, Width, Height, FormWidth, 1206 FormHeight: Integer); 1207 begin 1208 Fill(Canvas, Left, Top, Width, Height, (MainTexture.Width - FormWidth) div 1209 2, (MainTexture.Height - FormHeight) div 2); 1208 1210 end; 1209 1211
Note:
See TracChangeset
for help on using the changeset viewer.