Ignore:
Timestamp:
Jan 3, 2024, 3:05:32 PM (11 months ago)
Author:
chronos
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/MessgEx.pas

    r509 r514  
    4545  private
    4646    MovieCancelled: Boolean;
    47     procedure PaintBook(ca: TCanvas; X, Y, clPage, clCover: Integer);
     47    procedure PaintBook(Canvas: TCanvas; X, Y, clPage, clCover: Integer);
    4848    procedure PaintMyArmy;
    4949    procedure PaintEnemyArmy;
     
    221221end;
    222222
    223 procedure TMessgExDlg.PaintBook(ca: TCanvas; X, Y, clPage, clCover: Integer);
     223procedure TMessgExDlg.PaintBook(Canvas: TCanvas; X, Y, clPage, clCover: Integer);
    224224const
    225225  xScrewed = 77;
     
    238238  Height: Integer;
    239239begin
    240   Width := 56;
    241   Height := 40;
     240  Width := xSizeBig;
     241  Height := ySizeBig;
    242242  if IconIndex >= 0 then begin
    243243    xIcon := IconIndex mod 7 * xSizeBig;
     
    292292
    293293  // paint
    294   UnshareBitmap(LogoBuffer);
    295   BitBltCanvas(LogoBuffer.Canvas, 0, 0, BookRect.Width, BookRect.Height, ca, X, Y);
     294  UnshareBitmap(DrawBuffer);
     295  DrawBufferEnsureSize(BookRect.Width, BookRect.Height);
     296  BitBltCanvas(DrawBuffer.Canvas, 0, 0, BookRect.Width, BookRect.Height, Canvas, X, Y);
    296297
    297298  if IconIndex >= 0 then
     
    299300      for ix := 0 to wScrewed - 1 do
    300301        if Screwed[ix, iy, 3] > 0.01 then
    301           LogoBuffer.Canvas.Pixels[xScrewed + ix, yScrewed + iy] :=
     302          DrawBuffer.Canvas.Pixels[xScrewed + ix, yScrewed + iy] :=
    302303            Trunc(Screwed[ix, iy, 2] / Screwed[ix, iy, 3]) +
    303304            Trunc(Screwed[ix, iy, 1] / Screwed[ix, iy, 3]) shl 8 +
    304305            Trunc(Screwed[ix, iy, 0] / Screwed[ix, iy, 3]) shl 16;
    305306
    306   ImageOp_BCC(LogoBuffer, Templates.Data, Point(0, 0), BookRect, clCover, clPage);
    307 
    308   BitBltCanvas(ca, X, Y, BookRect.Width, BookRect.Height, LogoBuffer.Canvas, 0, 0);
     307  ImageOp_BCC(DrawBuffer, Templates.Data, Point(0, 0), BookRect, clCover, clPage);
     308
     309  BitBltCanvas(Canvas, X, Y, BookRect.Width, BookRect.Height, DrawBuffer.Canvas, 0, 0);
    309310end;
    310311
Note: See TracChangeset for help on using the changeset viewer.