home *** CD-ROM | disk | FTP | other *** search
/ No Fragments Archive 10: Diskmags / nf_archive_10.iso / MAGS / F_UPDATE / UPDATE_6.ZIP / DATA / TEXT / HB.ASC < prev    next >
Text File  |  1994-08-26  |  3KB  |  101 lines

  1.                            HiSoft Basic 2.10
  2.                            =================
  3.  
  4.  
  5. FALCON SCREEN RESOLUTIONS
  6. =========================
  7.  
  8. One major problem I had when making my programs was detecting which damn 
  9. screen resolution the user was loading my programs in.  Could they be in 
  10. a weird True Colour resolution?  If they have a VGA do they have the 
  11. Double Line On or Off ?  All these questions and no obvious answer made 
  12. me fiddle around and here is what I found...
  13.  
  14.  
  15. SYSTAB & GETREZ%
  16. ================
  17.  
  18. Both these calls are supposed to be used independantly, but with the 
  19. amount of resolutions on the Falcon it makes sense to combine their 
  20. results to find out the correct resolution and warn the user 
  21. accordingly.
  22.  
  23. r%=peekw(systab)
  24. g%=getrez%
  25.  
  26. The above are the methods used from within HB.  You will need to have 
  27. the Xbios library installed for the getrez command to work or else it 
  28. will return a value of 0 each time regardless.
  29.  
  30.  
  31. VGA WARNING
  32. ===========
  33.  
  34. I am yet to test my results on a RGB monitor or indeed TV should that be 
  35. any different, so for the meantime here are the results as tested on a 
  36. Samsung VGA.
  37.  
  38.  
  39. RESULTS!
  40. ========
  41.  
  42. Falcon Resolution                SYSTAB    GETREZ
  43. -------------------------------------------------
  44. 4 colour, 40 column, DL Off        2         7
  45. 4 colour, 80 column, DL Off        2         2
  46. 4 colour, 40 column, DL On         2         0
  47. 4 colour, 80 column, DL On         2         1
  48.  
  49. 16 colour, 40 column, DL Off       4         7
  50. 16 colour, 80 column, DL Off       4         2
  51. 16 colour, 40 column, DL On        4         0
  52. 16 colour, 80 column, DL On        4         1
  53.  
  54. 256 colour, 40 column, DL Off      8         7
  55. 256 colour, 80 column, DL Off      8         2
  56. 256 colour, 40 column, DL On       8         0
  57. 256 colour, 80 column, DL On       8         1
  58.  
  59. True Colour, 40 column, DL Off     16        7
  60. True Colour, 40 column, DL On      16        0
  61.  
  62. ST LOW                             4         0
  63. ST MED                             2         1
  64. ST HIGH                            1         2
  65.  
  66.  
  67. THAT'S IT!
  68. ==========
  69.  
  70. I am sure you can see from the above table that when you check the 
  71. systab and getrez results if they equal 16 and 7 then the user is in the 
  72. True Colour, 40 column, Double Line Off mode... and so on...
  73.  
  74.  
  75. PROBLEM
  76. =======
  77.  
  78. There is only one problem though.  The ST LOW results (4/0) are the same 
  79. as the 16 colour, 40 column, Double Line On (4,0).  This is because 
  80. essentially they are the same screen dimensions but you still might like 
  81. to know which one of the two it is.  Well I can't help you here I am 
  82. afraid but if anyone out there can then PLEASE get in touch!
  83.  
  84.  
  85. CONTACT
  86. =======
  87.  
  88. Falcon owning, HiSoft Basic programming people please get in touch with 
  89. me to swap ideas and routines.
  90.  
  91.      Richard Davey, 10 Oak Drive, Portishead, Bristol, BS20 8QS, UK.
  92.      Phone: +44 (0) 275 843241
  93.      Email: requiem@armory.com
  94.  
  95. The email will become active again during October 1994.  Please allow 
  96. some time for a reply as all mail is forwarded to me when at University.
  97.  
  98. Anyone who wants details about the FALCON OWNERS GROUP just send me a 
  99. single first class stamp and your address.
  100.  
  101.