Changeset 17 for trunk/Packages/Kernel/UDevice.pas
- Timestamp:
- Jan 21, 2018, 10:01:14 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Kernel/UDevice.pas
r13 r17 24 24 function GetBytesPerLine: Integer; 25 25 function GetBytesPerImage: Integer; 26 procedure Assign(Source: TVideoMode); 26 27 end; 27 28 … … 29 30 30 31 TDeviceVideo = class(TDevice) 32 private 33 FVideoMode: TVideoMode; 34 protected 35 procedure SetVideoMode(Mode: TVideoMode); virtual; 36 function GetVideoMemory: PByte; virtual; 37 public 31 38 constructor Create; override; 32 procedure SetMode(Mode: TVideoMode); virtual;33 39 procedure GetSupportedModes(Modes: TObjectList); virtual; 34 function GetVideoMemory: PByte; virtual;35 40 procedure VideoMemoryChange; virtual; 41 property VideoMode: TVideoMode read FVideoMode write SetVideoMode; 42 property VideoMemory: PByte read GetVideoMemory; 36 43 end; 37 44 … … 64 71 end; 65 72 73 procedure TVideoMode.Assign(Source: TVideoMode); 74 begin 75 Size := Source.Size; 76 ColorFormat := ColorFormat; 77 end; 78 66 79 { TDeviceSerial } 67 80 … … 90 103 inherited Create; 91 104 ClassName := 'Video device'; 105 FVideoMode := TVideoMode.Create; 92 106 end; 93 107 94 procedure TDeviceVideo.Set Mode(Mode: TVideoMode);108 procedure TDeviceVideo.SetVideoMode(Mode: TVideoMode); 95 109 begin 96 110 end;
Note:
See TracChangeset
for help on using the changeset viewer.