Ignore:
Timestamp:
Feb 3, 2018, 3:29:17 PM (7 years ago)
Author:
chronos
Message:
  • Modified: Set Bitmap size at once.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/BaseWin.pas

    r111 r118  
    55
    66uses
    7   ScreenTools, Messg,
    8 
    9   LCLIntf, LCLType, SysUtils, Classes, Graphics, Controls, Forms, DrawDlg;
     7  ScreenTools, LCLIntf, LCLType, SysUtils, Classes, Graphics, Controls, Forms,
     8  DrawDlg;
    109
    1110type
     
    471470  Offscreen := TBitmap.Create;
    472471  Offscreen.PixelFormat := pf24bit;
    473   Offscreen.Width := Screen.Width;
    474472  if Screen.Height - yUnused < 480 then
    475     Offscreen.Height := 480
    476   else
    477     Offscreen.Height := Screen.Height - yUnused;
     473    Offscreen.SetSize(Screen.Width, 480)
     474  else
     475    Offscreen.SetSize(Screen.Width, Screen.Height - yUnused);
    478476  Offscreen.Canvas.FillRect(0, 0, Offscreen.Width, OffScreen.Height);
    479477  Offscreen.Canvas.Brush.Style := bsClear;
Note: See TracChangeset for help on using the changeset viewer.