void gr_rect(int left,int top,int right,int bot) { int i; #ifdef OGL if (TYPE == BM_OGL) { ogl_urect(left,top,right,bot); return; } #endif for ( i=top; i<=bot; i++ ) gr_scanline( left, right, i ); }
void gr_rect(int left,int top,int right,int bot) { int i; #ifdef OGL if (TYPE == BM_OGL) { ogl_urect(left,top,right,bot); return; } #endif #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++ ) gr_scanline( left, right, i ); }