Changeset 17 for trunk/Packages/Kernel/UScreen.pas
- Timestamp:
- Jan 21, 2018, 10:01:14 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Kernel/UScreen.pas
r16 r17 25 25 26 26 TScreen = class 27 private 28 function GetBytesPerLine: Integer; 29 function GetBytesPerPixel: Integer; 30 function GetVideoMemory: PByte; 31 public 27 32 Device: TObject; // TDeviceVideo; 28 33 Size: TPoint; 29 34 DPI: Integer; 30 35 ColorFormat: TColorFormat; 31 BytesPerPixel: Integer;32 BytesPerLine: Integer;33 VideoMemory: PByte;34 36 Canvas: TCanvas; 35 37 procedure VideoMemoryUpdated; 38 property BytesPerPixel: Integer read GetBytesPerPixel; 39 property BytesPerLine: Integer read GetBytesPerLine; 40 property VideoMemory: PByte read GetVideoMemory; 36 41 end; 37 42 … … 99 104 { TScreen } 100 105 106 function TScreen.GetBytesPerLine: Integer; 107 begin 108 Result := TDeviceVideo(Device).VideoMode.GetBytesPerLine; 109 end; 110 111 function TScreen.GetBytesPerPixel: Integer; 112 begin 113 Result := TDeviceVideo(Device).VideoMode.GetBytesPerPixel; 114 end; 115 116 function TScreen.GetVideoMemory: PByte; 117 begin 118 Result := TDeviceVideo(Device).VideoMemory; 119 end; 120 101 121 procedure TScreen.VideoMemoryUpdated; 102 122 begin
Note:
See TracChangeset
for help on using the changeset viewer.