home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 33 VDrivers
/
33-VDrivers.zip
/
s3rset.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1994-05-19
|
2KB
|
60 lines
/*
** S3 Reset
**
** This program resets your S3 display driver to 640x480, 256
** color operation. It's especially handy if you accidentally
** set the driver for a resolution unsuppoted by your monitor.
**
** This is a Rexx program, and it cannot be run from a floppy-
** booted system. If you are expecting display trouble, make
** a "shadow" of your OS/2 Full Screen Command icon and place
** in your Startup Folder. That will assure you of getting an
** OS/2 command window from which you can run this program.
**
** This program was created by Rich Wooley [73354,473]
** of Binar Graphics. It was uploaded to CIS by
** Joe Barnhart [76174,1573].
*/
'@echo off'
call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
call SysLoadFuncs
width = 640
height = 480
colors = 256
planes = 1
options = 64
resstring = ""
say "Setting the resolution set to "width" x "height" x "colors" colors"
do i=1 to 4
char = width // 256
width = width % 256
resstring = resstring || D2C(char) end
do i=1 to 4
char = height // 256
height = height % 256
resstring = resstring || D2C(char) end
do i=1 to 4
char = colors // 256
colors = colors % 256
resstring = resstring || D2C(char) end
do i=1 to 4
char = planes // 256
planes = planes % 256
resstring = resstring || D2C(char) end
do i=1 to 4
char = options // 256
options = options % 256
resstring = resstring || D2C(char) end
call SysIni 'USER', 'PM_DISPLAYDRIVERS', 'DEFAULTSYSTEMRESOLUTION',resstring
say "Resolution change complete. Reboot when ready."
exit