Changeset 17 for trunk/ScreenTools.pas
- Timestamp:
- Jan 8, 2017, 11:21:02 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ScreenTools.pas
r15 r17 5 5 6 6 uses 7 Windows,StringTables,7 StringTables, 8 8 LCLIntf, LCLType, LMessages, Messages, SysUtils, Classes, Graphics, Controls, 9 9 Forms, Menus; … … 16 16 end; 17 17 18 {$IFDEF WINDOWS} 18 19 function ChangeResolution(x, y, bpp, freq: integer): boolean; 20 {$ENDIF} 19 21 procedure RestoreResolution; 20 22 function Play(Item: string; Index: integer = -1): boolean; … … 192 194 193 195 var 196 {$IFDEF WINDOWS} 194 197 StartResolution: TDeviceMode; 198 {$ENDIF} 195 199 ResolutionChanged: boolean; 196 200 … … 198 202 GammaLUT: array [0 .. 255] of Byte; 199 203 204 {$IFDEF WINDOWS} 200 205 function ChangeResolution(x, y, bpp, freq: integer): boolean; 201 206 var … … 213 218 ResolutionChanged := true; 214 219 end; 220 {$ENDIF} 215 221 216 222 procedure RestoreResolution; 217 223 begin 224 {$IFDEF WINDOWS} 218 225 if ResolutionChanged then 219 226 ChangeDisplaySettings(StartResolution, 0); 227 {$ENDIF} 220 228 ResolutionChanged := false; 221 229 end; … … 1476 1484 end; 1477 1485 1486 {$IFDEF WINDOWS} 1478 1487 EnumDisplaySettings(nil, $FFFFFFFF, StartResolution); 1488 {$ENDIF} 1479 1489 ResolutionChanged := false; 1480 1490
Note:
See TracChangeset
for help on using the changeset viewer.