home *** CD-ROM | disk | FTP | other *** search
/ 1st Canadian Shareware Disc / 1st_Canadian_Shareware_Disc_1991.ISO / graphics / svga256m / svga256.doc < prev    next >
Text File  |  1990-11-05  |  2KB  |  40 lines

  1. Hey all. I found this .BGI driver on a local board, it supported 3 graphmodes;
  2. 1: 640x400x256 (5Ch)
  3. 2: 640x480x256 (5Dh)
  4. 3: 800x600x256 (5Eh)
  5. So I patched it, now the graphmodes are as follows:
  6. 1: 1024x768x256 (62h)
  7. 2: 640x480x256  (5Dh)
  8. 3: 800x600x256  (5Eh)
  9. I've included slightly patched tp55 source to borlands vga256 demo, so y'all
  10. can check it out. The demo is set for graphmode 1 (1024x768x256).
  11. If any of you are interested in patching this for other video modes,
  12. it's not too hard. You need pctools or some other hex editor. First,
  13. look for the mode numbers (hex)- you should find 62,5D and 5E near the
  14. beginning of the file, all separated by several 00s. Change the mode
  15. number that you want to change. Then take the original resoloution (for
  16. the mode number before you just changed it), subtract 1 from each
  17. dimension (so if you are changing graphmode 2, you have just replaced
  18. the 5D with whatever mode # you want, in hex, then you take the 640 & 480,
  19. subtract 1, & get 639 & 479). Now convert them to hex. 639=027Fh 479=01DFh.
  20. Now reverse the low & high bytes, so you have 7F02h & DF01h. Look for the
  21. first one of these in the file (towards the end). You will see the first
  22. one, then the second one, then the first one repeated (7F 02 DF 01 7F 02).
  23. Change these to the correct numbers for your mode. Then just look for the
  24. ASCII identifier for your mode (in this case "SuperVGA 640x480x256") and
  25. put the correct numbers in for your mode; keep the length of the string the
  26. same, if you change it you may corrupt the code (that's why mode 1 says
  27. "SuperVGA1024x768x256" and the others have a space after the "SuperVGA").
  28.       I monitor the RIME turbo pascal conference, if you want to contact
  29. me. When I got the original .BGI driver (before I patched it), it was
  30. in a zip with a little readme which said nothing about it being other
  31. than public domain, so I hope I'm not violating anyone's deal by uploading
  32. this. I seek no remuneration personally. Have fun. - David Lipper
  33.  
  34. NOTE: don't change the name of the .BGI file or it won't work. I tried to
  35. change the file ID inside the .BGI so I could change the name, but it didn't
  36. work & I didn't pursue it. I someone figures this out, please send me some
  37. mail & let me know how. Also, please don't rename the zipfile svga256.zip
  38. since that was the name of the unpatched version. I added an M to the
  39. filename since you need 1 Meg of video memory to use mode 1. Thanks.
  40.