home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 33 VDrivers / 33-VDrivers.zip / smalldrv.zip / ReadMe < prev   
Text File  |  1993-05-21  |  11KB  |  256 lines

  1. Small resource SVGA display driver for 1024x768x256 (2.1 March beta only)
  2. -------------------------------------------------------------------------
  3.  
  4. Release date: 21/05/93
  5.  
  6. CONTENTS
  7.  
  8.     Introduction
  9.     Limitations
  10.     Bugs (well, bug...) 
  11.     Disclaimer
  12.     Installation
  13.     How this driver was created
  14.     Contacting the author
  15.     Blatant plug
  16.  
  17. INTRODUCTION
  18.  
  19. This driver basically gives you the resources used by the 640x480 display
  20. driver at 1024x768 resolution, thus effectively giving you more screen real
  21. estate. The main differences between this and the standard 1024x768x256 SVGA
  22. driver are:
  23.  
  24.     Small fonts
  25.         Small system fonts (esp. useful when viewing help)
  26.         8.Helv is now *really* tiny!
  27.  
  28.     Small icons
  29.         Full-sized icons are 32x32 pixels and not 40x40
  30.  
  31.     Small title bars
  32.         Title bars have shrunk along with everything else;
  33.         they are now the same height (in pixels) as in 640x480
  34.         resolution.
  35.  
  36. LIMITATIONS
  37.  
  38. This driver is only suitable as a replacement for 1024x768x256 resolution
  39. SVGA display drivers. It therefore supports cards such as those with Tseng
  40. and Trident chipsets. It will *not* work 8514 or XGA cards. Basically, if
  41. your card uses the IBMDEV32.DLL driver unpacked from SV768256.DLL on Display
  42. Driver Diskette 2 then this driver will probably work.
  43.  
  44. This driver is intended for the March beta of OS/2 2.1 only. It *may* work
  45. with the December beta of OS/2 but this is untested. If you have the
  46. December beta then let me know how you get on.
  47.  
  48. BUGS
  49.  
  50. For some reason, the System VIO font is no longer present in the Font Palette
  51. using this driver. If you encounter any other difficulties then please email
  52. me.
  53.  
  54. DISCLAIMER
  55.  
  56. This driver was created for my own use only. I have made it available merely
  57. as a service to others who are also fed-up with having their screen
  58. resolution wasted. I accept no responsibility or liability for any loss or
  59. damage arising from or as a result of the use of this driver.
  60.  
  61. You know the score: if you use this driver and everything goes horribly wrong
  62. then don't blame me, you were warned :-)
  63.  
  64. Note: I should point out that I don't expect you to have any problems, but
  65.       that doesn't mean you won't...
  66.  
  67. If anyone at IBM is upset that I've uploaded some modified March beta code
  68. then I'm *really* sorry. You could sue me, but I haven't got any money so it
  69. probably wouldn't be worth it :-) Seriously, let me know if there are
  70. problems with making this driver available and I'll get it removed ASAP.
  71. What would be wonderful would be to have IBM make small resource 1024x768
  72. drivers available as part of the standard OS/2 distribution.
  73.  
  74. INSTALLATION
  75.  
  76. These instructions assume that OS/2 is installed on your C: drive. If this is
  77. not the case then modify paths accordingly. For example, C:\OS2 will become
  78. x:\OS2 (where x: is the drive on which OS/2 is installed).
  79.  
  80. Since you are reading this I assume that you have managed to unzip the file
  81. containing the replacement driver!
  82.  
  83. 1.    You should verify that your video card is supported by this driver
  84.     (see LIMITATIONS).
  85.  
  86. 2.    Ensure that your display adapter is currently running in
  87.     1024x768x256 resolution.
  88.  
  89. 3.    Make a backup copy of the two files
  90.  
  91.             C:\OS2\DLL\DSPRES.DLL
  92.         and C:\OS2\DLL\IBMDEV32.DLL
  93.  
  94. 4.    Boot OS/2 without Presentation Manager. You can do this by booting
  95.     from the installation disks (and pressing ESC at the first
  96.     opportunity). Alternatively, make a copy of your CONFIG.SYS then
  97.     edit it [the original] to change the line
  98.  
  99.         PROTSHELL=C:\OS2\PMSHELL.EXE
  100.          to PROTSHELL=C:\OS2\CMD.EXE
  101.  
  102.     and then shutdown and reboot.
  103.  
  104.     This step is required because Presentation Manager locks the DLLs
  105.     that we wish to replace whilst it is running.
  106.  
  107. 5.    Having completed step 4, you should be in a full-screen OS/2 command
  108.     shell.  Copy the files DSPRES.DLL and IBMDEV32.DLL supplied with
  109.     these instructions to the directory C:\OS2\DLL
  110.  
  111. 6.    If you altered your CONFIG.SYS, now is the time to restore the
  112.     backup copy that you made in step 4. If you forgot to make a backup
  113.     copy, then you can type PMSHELL at the command line. PM will then be
  114.     loaded (and probably the WPS too) and you will be able to edit
  115.     CONFIG.SYS and restore it to its original state (that prior to step
  116.     4). Having restored your CONFIG.SYS you can shut down and reboot.
  117.  
  118.     If you didn't modify CONFIG.SYS then you can simply reboot your
  119.     machine.
  120.  
  121. 7.    If everything has gone smoothly then you will be presented with a WPS
  122.     desktop in 1024x768x256 resolution using small resources.
  123.  
  124.     If this is not the case then check to see that you followed these
  125.     instructions exactly.
  126.  
  127.     If you still have problems then this driver is not for you. Go to
  128.     step 4 and restore the original DSPRES.DLL and IBMDEV32.DLL files
  129.     which you backed up in step 3.
  130.  
  131. 8.    If you have changed the default system font to something other than
  132.     10.System Proportional, then you will need to undo the change. If
  133.     you don't understand what this means then don't worry, you probably
  134.     won't have changed it!
  135.  
  136.     In order to set the default system font to 10.System Proportional,
  137.     run the REXX script FONT.CMD included with this distribution.
  138.  
  139. That's it! I'd be delighted to know how you get on with this driver, whether
  140. your experience is good or bad. See CONTACTING THE AUTHOR below.
  141.  
  142. HOW THIS DRIVER WAS CREATED
  143.  
  144. If your video card isn't supported by this driver then you may wish (if
  145. you're feeling brave and/or foolish) to attempt to create a small resources
  146. driver of your own.  I therefore describe how I created the small resource
  147. driver.
  148.  
  149. Like many people, I was fed up with the large fonts and icons used in the
  150. standard 1024x768 SVGA display driver. Desiring an excuse to avoid doing
  151. revision for my finals, I downloaded a binary editor (beav) and dug out my
  152. copy of Borland's Resource Workshop for OS/2 (supplied with Borland C++ for
  153. OS/2). Then I played...
  154.  
  155. A little experimentation showed that IBMDEV32.DLL was the DLL responsible for
  156. the display resolution and resources used. In other words, IBMDEV32.DLL is
  157. the display driver. Cleverly, only one IBMDEV32.DLL is used for all the SVGA
  158. display cards supported by the March OS/2 2.1 beta.
  159.  
  160. Next, I made a copy of IBMDEV32.DLL and fired up Resource Workshop (RW from
  161. here on).  I deleted all the resources attached to the DLL and then saved
  162. the result to 1024.DLL.
  163.  
  164. I manually unpacked the 640x480x256 IBMDEV32.DLL from Display Driver Disk 2.
  165. I loaded this into RW and saved the resources as a .RES file (640.RES).
  166.  
  167. Feeling brave, I loaded 1024.DLL into beav. From my Windoze days I knew that
  168. the large font drivers had a device resolution of 120 something or others.
  169. The small font drivers had a resolution of 96. Knowing 120 to 78 hexadecimal
  170. (well, I didn't *know*, I used my trusty HP calculator :-), I browsed
  171. through 1024.DLL searching for something that might prove relevant.
  172. Eventually, I found two sequences of four bytes.  Both sequences were
  173. 78 00 00 00 (all numbers are hex). I changed the 78 to 60 in both instances
  174. (60 hex being 96 decimal). I saved 1024.DLL and quit beav.  Actually, I've
  175. made it sound simple. I could pretend that I got it right first time and
  176. impress you all, but then I'd be lying ;-) I'll spare you the grief...
  177.  
  178. Using RC.EXE (supplied with OS/2), I bound the contents of 640.RES to the
  179. newly modified 1024.DLL. Automagically, I had a small resource IBMDEV32.DLL
  180. (albeit called 1024.DLL, but that was easily changed).
  181.  
  182. Anyhow, I replaced my C:\OS2\DLL\IBMDEV32.EXE with the 1024.DLL just created.
  183. I rebooted.
  184.  
  185. Well, I had small icons and small title bars. Unfortunately, I still had that
  186. enormously large system font which IBM for some reason has seen fit to
  187. inflict upon all owners of display cards/monitors capable of at least
  188. 1024x768. Why they assume that we wish to waste our high resolution with
  189. enormous fonts I really don't know. I only have a 15" monitor and they're
  190. far too large for me. I pity those with 20" monitors. I guess they must have
  191. long keyboard leads and sit about six feet back from the screen...
  192.  
  193. Okay, "Simple!" I think to myself. The March beta lets you change the
  194. default system font (there's a little REXX script in the March OS/2 README).
  195. So I change it to 8.Helv.  Bad move. Sure, it worked. However, the WPS
  196. settings notebooks insisted on using the *real* (giant) system font, and not
  197. the default that I'd set. This would have been bearable had they not tried
  198. to space the dialog components according to the 8.Helv font metrics...
  199.  
  200. I reset the default system font to 10.System Proportional. I needed another
  201. solution.  I'm sure that there is some magic in IBMDEV32.DLL which dictates
  202. which sized system font to use (you know, sensible size, or stupid size).
  203. Most likely, it simply contains the resource ID of the font to use. However,
  204. Turbo Debugger GX wouldn't let me disassemble IBMDEV32.DLL to see what it
  205. was doing (it's not an executable program and so TDGX didn't want to know)
  206. and I wasn't brave enough to attempt to force IBMDEV32.DLL into submission
  207. with beav. I therefore cast my attentions elsewhere.
  208.  
  209. It turns out that DSPRES.DLL contains the system fonts (ISO System
  210. Proportional, non-ISO System Proportional and System VIO) used by OS/2.
  211. Further inspection revealed that there are three versions of both of the
  212. System Proportional fonts. Why three? I've no idea. I thought there were
  213. only two variations: small and large. Apparently not, but I digress. The
  214. System Proportional (ISO) font appears to be stored under resource IDs 100,
  215. 101 and 102. The non-ISO versions under 200, 201 and 202. Using my skill and
  216. cunning (okay, so I guessed :-) I copied the contents of resource 100 to 101
  217. and 102.  Likewise, I replaced 201 and 202 by the contents of resource 200.
  218. Then I saved DSPRES.DLL.
  219.  
  220. I replaced my C:\OS2\DLL\DSPRES.DLL with the new version and rebooted.
  221. Heaven! Bliss!  Screen space! Finally, I could use the available screen
  222. resolution in a sensible way.  Somewhere along the line, System VIO fonts
  223. had disappeared from the font palette, but that was a small price to pay...
  224.  
  225. CONTACTING THE AUTHOR
  226.  
  227. This section is misleadingly titled. Of course, I'm not the author of the
  228. driver included in this package. Some clever people at IBM actually wrote
  229. it. I merely, um, modified it.  Tampered may be a better description...
  230.  
  231. Still, if you wish to get in contact with me to tell me how I've saved your
  232. life (or trashed your hard disk :-) then you can e-mail me up until June
  233. 23rd. After that I finish university and am allowed out to play in the real
  234. world. My email id is
  235.  
  236.     djn@ukc.ac.uk
  237.  
  238. If you wish to snail-mail me, I can be contacted at
  239.  
  240.     Daniel J Neades
  241.     c/o 45 Causley Drive
  242.     Warmley
  243.     Bristol
  244.     BS15 7BA
  245.     England
  246.  
  247. BLATANT PLUG
  248.  
  249. One final note, you may wish to try out my first ever PM program. It's a
  250. graphical process display/kill utility (standard stuff...) called PMps.
  251. It's on hobbes in pub/os2/2.x/sysutils/pmps.zip.
  252.  
  253. I've just finished writing a really whizzy little application which you'd
  254. all love.  Unfortunately, it's under wraps at the moment and so you'll have
  255. to wait for it...
  256.