00001
00002
00003
00004
00005 #include "ORECT.h"
00006
00007
00009
00010 x1 = inX1;
00011 y1 = inY1;
00012 x2 = inX2;
00013 y2 = inY2;
00014 }
00015
00016
00017
00018
00020
00021
00022 if ( x1 < clipRect.x1)
00023 x1 = clipRect.x1;
00024 else if ( x1 > clipRect.x2 )
00025 x1 = clipRect.x2;
00026
00027 if ( x2 < clipRect.x1)
00028 x2 = clipRect.x1;
00029 else if ( x2 > clipRect.x2 )
00030 x2 = clipRect.x2;
00031
00032 if ( y1 < clipRect.y1)
00033 y1 = clipRect.y1;
00034 else if ( y1 > clipRect.y2 )
00035 y1 = clipRect.y2;
00036
00037 if ( y2 < clipRect.y1)
00038 y2 = clipRect.y1;
00039 else if ( y2 > clipRect.y2 )
00040 y2 = clipRect.y2;
00041 }
00042
00043