Ignore:
Timestamp:
Jan 9, 2017, 9:41:20 PM (7 years ago)
Author:
chronos
Message:

Fixed: Problem with reading Form canvas during OnPaint event using BitBlt. Chnaged to read using StreatchDraw as workaround.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/MessgEx.pas

    r38 r41  
    298298
    299299  // paint
    300   BitBlt(LogoBuffer.Canvas.Handle, 0, 0, wb, hb, ca.Handle, x, y, SRCCOPY);
     300  BitBltCanvas(LogoBuffer.Canvas, 0, 0, wb, hb, ca, x, y, SRCCOPY);
    301301
    302302  if IconIndex >= 0 then
     
    436436    mikEnemyShipComplete:
    437437      begin
    438         BitBlt(Buffer.Canvas.Handle, 0, 0, 140, 120, Canvas.Handle,
     438        BitBltCanvas(Buffer.Canvas, 0, 0, 140, 120, Canvas,
    439439          (ClientWidth - 140) div 2, 24, SRCCOPY);
    440440        ImageOp_BCC(Buffer, Templates, 0, 0, 1, 279, 140, 120, 0, $FFFFFF);
Note: See TracChangeset for help on using the changeset viewer.