MACSTUBS.C 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. /*
  2. THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
  3. SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
  4. END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
  5. ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
  6. IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
  7. SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
  8. FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
  9. CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
  10. AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
  11. COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
  12. */
  13. #include "gr.h"
  14. #include "error.h"
  15. void gr_sync_display()
  16. {
  17. }
  18. void gr_modex_uscanline( short x1, short x2, short y, unsigned char color )
  19. {
  20. x1 = x1;
  21. x2 = x2;
  22. y = y;
  23. color = color;
  24. Int3();
  25. }
  26. int gr_modex_setmode(short mode)
  27. {
  28. mode = mode;
  29. Int3();
  30. return 0;
  31. }
  32. void gr_modex_setplane(short plane)
  33. {
  34. plane = plane;
  35. Int3();
  36. }
  37. void gr_modex_setstart(short x, short y, int wait_for_retrace)
  38. {
  39. x = x;
  40. y = y;
  41. wait_for_retrace = wait_for_retrace;
  42. Int3();
  43. }
  44. void gr_modex_line( void )
  45. {
  46. Int3();
  47. }
  48. int gr_vesa_setmodea(int mode)
  49. {
  50. mode = mode;
  51. Int3();
  52. return 0;
  53. }
  54. int gr_vesa_checkmode(int mode)
  55. {
  56. mode = mode;
  57. Int3();
  58. return 0;
  59. }
  60. void gr_vesa_setstart(short x, short y )
  61. {
  62. x = x;
  63. y = y;
  64. Int3();
  65. }
  66. void gr_vesa_setpage(int page)
  67. {
  68. page = page;
  69. Int3();
  70. }
  71. void gr_vesa_incpage()
  72. {
  73. Int3();
  74. }
  75. void gr_vesa_scanline(short x1, short x2, short y, unsigned char color )
  76. {
  77. x1 = x1;
  78. x2 = x2;
  79. y = y;
  80. color = color;
  81. Int3();
  82. }
  83. int gr_vesa_setlogical(int pixels_per_scanline)
  84. {
  85. pixels_per_scanline = pixels_per_scanline;
  86. Int3();
  87. return 0;
  88. }
  89. void gr_vesa_bitblt( unsigned char * source_ptr, unsigned int vesa_address, int height, int width )
  90. {
  91. source_ptr = source_ptr;
  92. vesa_address = vesa_address;
  93. height = height;
  94. width = width;
  95. Int3();
  96. }
  97. void gr_vesa_pixel( unsigned char color, unsigned int offset )
  98. {
  99. color = color;
  100. offset = offset;
  101. Int3();
  102. }
  103. void gr_vesa_bitmap( grs_bitmap * source, grs_bitmap * dest, int x, int y )
  104. {
  105. source = source;
  106. dest = dest;
  107. x = x;
  108. y = y;
  109. Int3();
  110. }