Changeset 41 for trunk/LocalPlayer


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

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

Location:
trunk/LocalPlayer
Files:
2 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);
  • trunk/LocalPlayer/Select.pas

    r40 r41  
    821821        LoweredTextOut(Canvas, -1, MainTexture, xScreen + 10,
    822822          ClientHeight - 29, s);
    823         BitBlt(ScienceNationDot.Canvas.Handle, 0, 0, 17, 17, Canvas.Handle,
     823        BitBltCanvas(ScienceNationDot.Canvas, 0, 0, 17, 17, Canvas,
    824824          xScreen - 10, ClientHeight - 27, SRCCOPY);
    825825        ImageOp_BCC(ScienceNationDot, Templates, 0, 0, 114, 211, 17, 17,
Note: See TracChangeset for help on using the changeset viewer.