Changeset 514 for trunk/LocalPlayer
- Timestamp:
- Jan 3, 2024, 3:05:32 PM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/MessgEx.pas
r509 r514 45 45 private 46 46 MovieCancelled: Boolean; 47 procedure PaintBook( ca: TCanvas; X, Y, clPage, clCover: Integer);47 procedure PaintBook(Canvas: TCanvas; X, Y, clPage, clCover: Integer); 48 48 procedure PaintMyArmy; 49 49 procedure PaintEnemyArmy; … … 221 221 end; 222 222 223 procedure TMessgExDlg.PaintBook( ca: TCanvas; X, Y, clPage, clCover: Integer);223 procedure TMessgExDlg.PaintBook(Canvas: TCanvas; X, Y, clPage, clCover: Integer); 224 224 const 225 225 xScrewed = 77; … … 238 238 Height: Integer; 239 239 begin 240 Width := 56;241 Height := 40;240 Width := xSizeBig; 241 Height := ySizeBig; 242 242 if IconIndex >= 0 then begin 243 243 xIcon := IconIndex mod 7 * xSizeBig; … … 292 292 293 293 // 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); 296 297 297 298 if IconIndex >= 0 then … … 299 300 for ix := 0 to wScrewed - 1 do 300 301 if Screwed[ix, iy, 3] > 0.01 then 301 LogoBuffer.Canvas.Pixels[xScrewed + ix, yScrewed + iy] :=302 DrawBuffer.Canvas.Pixels[xScrewed + ix, yScrewed + iy] := 302 303 Trunc(Screwed[ix, iy, 2] / Screwed[ix, iy, 3]) + 303 304 Trunc(Screwed[ix, iy, 1] / Screwed[ix, iy, 3]) shl 8 + 304 305 Trunc(Screwed[ix, iy, 0] / Screwed[ix, iy, 3]) shl 16; 305 306 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); 309 310 end; 310 311
Note:
See TracChangeset
for help on using the changeset viewer.