diff --git a/common/2d/rect.cpp b/common/2d/rect.cpp index 48f757fbd..424ecac74 100644 --- a/common/2d/rect.cpp +++ b/common/2d/rect.cpp @@ -40,23 +40,19 @@ void gr_urect(int left,int top,int right,int bot) return; } #else - int i; - - for ( i=top; i<=bot; i++ ) + for ( int i=top; i<=bot; i++ ) gr_uscanline( left, right, i ); #endif } 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++ ) + for ( int i=top; i<=bot; i++ ) gr_scanline( left, right, i ); }