Changeset 220 for branches/CpuSingleSize/Forms/UFormScreen.pas
- Timestamp:
- Oct 20, 2020, 1:10:09 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/CpuSingleSize/Forms/UFormScreen.pas
r216 r220 12 12 { TFormScreen } 13 13 14 TFormScreen = class(TForm )14 TFormScreen = class(TFormDevice) 15 15 PaintBox1: TPaintBox; 16 16 Timer1: TTimer; … … 21 21 private 22 22 TempBitmap: TBitmap; 23 protected 24 function GetDevice: TDevice; override; 25 procedure SetDevice(AValue: TDevice); override; 23 26 public 24 27 Screen: TScreen; … … 46 49 P := TempBitmap.ScanLine[Y]; 47 50 for X := 0 to Screen.Size.X - 1 do begin 48 P^ := Screen. Data[Y * Screen.Size.Y + X] * $010101;51 P^ := Screen.VideoMem[Y * Screen.Size.Y + X] * $010101; 49 52 Inc(P); 50 53 end; … … 53 56 PaintBox1.Refresh; 54 57 end; 58 end; 59 60 function TFormScreen.GetDevice: TDevice; 61 begin 62 Result := Screen; 63 end; 64 65 procedure TFormScreen.SetDevice(AValue: TDevice); 66 begin 67 if AValue is TScreen then 68 Screen := TScreen(AValue); 55 69 end; 56 70
Note:
See TracChangeset
for help on using the changeset viewer.