VIDEO.I 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. ;
  2. ; Command & Conquer Red Alert(tm)
  3. ; Copyright 2025 Electronic Arts Inc.
  4. ;
  5. ; This program is free software: you can redistribute it and/or modify
  6. ; it under the terms of the GNU General Public License as published by
  7. ; the Free Software Foundation, either version 3 of the License, or
  8. ; (at your option) any later version.
  9. ;
  10. ; This program is distributed in the hope that it will be useful,
  11. ; but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ; GNU General Public License for more details.
  14. ;
  15. ; You should have received a copy of the GNU General Public License
  16. ; along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. ;
  18. ;****************************************************************************
  19. ;*
  20. ;* C O N F I D E N T I A L -- W E S T W O O D S T U D I O S
  21. ;*
  22. ;*----------------------------------------------------------------------------
  23. ;*
  24. ;* FILE
  25. ;* video.i
  26. ;*
  27. ;* DESCRIPTION
  28. ;* Video manager definitions. (32-Bit protected mode)
  29. ;*
  30. ;* PROGRAMMER
  31. ;* Denzil E. Long, Jr.
  32. ;*
  33. ;* DATE
  34. ;* January 26, 1995
  35. ;*
  36. ;****************************************************************************
  37. INCLUDE "vesavid.i"
  38. ;----------------------------------------------------------------------------
  39. ; Video Modes
  40. ;----------------------------------------------------------------------------
  41. TEXT EQU 002h
  42. MCGA EQU 013h
  43. XMODE_320X200 EQU 050h
  44. XMODE_320X240 EQU 051h
  45. XMODE_320X400 EQU 052h
  46. XMODE_320X480 EQU 053h
  47. XMODE_360X400 EQU 054h
  48. XMODE_360X480 EQU 055h
  49. ;----------------------------------------------------------------------------
  50. ; Structure definitions
  51. ;----------------------------------------------------------------------------
  52. ; DisplayInfo - Information about the current display.
  53. ;
  54. ; Mode - Mode identification
  55. ; XRes - X resolution
  56. ; YRes - Y resolution
  57. ; VBIbit - Polarity of vertical blank bit.
  58. ; Extended - Pointer to mode specified data structure.
  59. STRUC DisplayInfo
  60. Mode DD ?
  61. XRes DD ?
  62. YRes DD ?
  63. VBIbit DD ?
  64. Extended DD ?
  65. ENDS DisplayInfo
  66. ;----------------------------------------------------------------------------
  67. ; Function definitions
  68. ;----------------------------------------------------------------------------
  69. GLOBAL C GetDisplayInfo:NEAR
  70. GLOBAL C GetVBIBit:NEAR