version 1.1 | | version 1.2 |
---|
| | |
* Graphical routines for drawing rectangles. | | * Graphical routines for drawing rectangles. |
* | | * |
* $Log$ | | * $Log$ |
* Revision 1.1 1999/06/14 21:57:32 donut | | * Revision 1.2 1999/08/05 22:53:40 sekmu |
* Initial revision | | * |
| | * D3D patch(es) from ADB |
| | * |
| | * Revision 1.1.1.1 1999/06/14 21:57:32 donut |
| | * Import of d1x 1.37 source. |
* | | * |
* Revision 1.3 1994/11/18 22:50:19 john | | * Revision 1.3 1994/11/18 22:50:19 john |
* Changed shorts to ints in parameters. | | * Changed shorts to ints in parameters. |
| | |
| | |
void gr_urect(int left,int top,int right,int bot) | | void gr_urect(int left,int top,int right,int bot) |
{ | | { |
#ifdef D1XD3D | | |
if (right > left && bot > top) | | |
Win32_Rect (left, top, right, bot, grd_curcanv->cv_bitmap.bm_data, COLOR); | | |
#else | | |
int i; | | int i; |
| | |
| | #ifdef D1XD3D |
| | if (TYPE == BM_DIRECTX) { |
| | if (left <= right && top <= bot) |
| | Win32_Rect (left, top, right, bot, grd_curcanv->cv_bitmap.bm_data, COLOR); |
| | return; |
| | } |
| | #endif |
for ( i=top; i<=bot; i++ ) | | for ( i=top; i<=bot; i++ ) |
gr_uscanline( left, right, i ); | | gr_uscanline( left, right, i ); |
#endif | | |
} | | } |
| | |
void gr_rect(int left,int top,int right,int bot) | | void gr_rect(int left,int top,int right,int bot) |
{ | | { |
#ifdef D1XD3D | | |
if (right > left && bot > top) | | |
Win32_Rect (left, top, right, bot, grd_curcanv->cv_bitmap.bm_data, COLOR); | | |
#else | | |
int i; | | int i; |
| | |
| | #ifdef D1XD3D |
| | if (TYPE == BM_DIRECTX) { |
| | if (left <= right && top <= bot) |
| | Win32_Rect (left, top, right, bot, grd_curcanv->cv_bitmap.bm_data, COLOR); |
| | return; |
| | } |
| | #endif |
for ( i=top; i<=bot; i++ ) | | for ( i=top; i<=bot; i++ ) |
gr_scanline( left, right, i ); | | gr_scanline( left, right, i ); |
#endif | | |
} | | } |
| | |