Changeset 206 for trunk/Start.pas


Ignore:
Timestamp:
May 8, 2020, 6:12:35 PM (4 years ago)
Author:
chronos
Message:
  • Modified: Remove warnings about uninitialized TPixelPointer variables. Initialize that types using PixelPointer function in similar way how TPoint is inicialized using Point function.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Start.pas

    r198 r206  
    165165
    166166uses
    167   Global, Directories, Direct, ScreenTools, Inp, Back, Locale, PixelPointer;
     167  Global, Directories, Direct, ScreenTools, Inp, Back, Locale, UPixelPointer;
    168168
    169169{$R *.lfm}
     
    354354  Bitmap.SetSize(Size.X * 2, Size.Y);
    355355  Bitmap.BeginUpdate;
    356   MiniPixel.Init(Bitmap);
     356  MiniPixel := PixelPointer(Bitmap);
    357357  for y := 0 to Size.Y - 1 do begin
    358358    for x := 0 to Size.X - 1 do begin
     
    386386  if Mode = mmPicture then begin
    387387    Bitmap.BeginUpdate;
    388     MiniPixel.Init(Bitmap);
    389     PrevMiniPixel.Init(Bitmap, 0, -1);
     388    MiniPixel := PixelPointer(Bitmap);
     389    PrevMiniPixel := PixelPointer(Bitmap, 0, -1);
    390390    for y := 0 to Size.Y - 1 do begin
    391391      for x := 0 to Size.X - 1 do begin
Note: See TracChangeset for help on using the changeset viewer.