comparison Viewport.cpp @ 1027:5aba2a5047c4

.
author Nomad
date Tue, 21 May 2013 11:24:26 +0200
parents c0d0656aa662
children 05c62d166182
comparison
equal deleted inserted replaced
1004:eac5af72b614 1027:5aba2a5047c4
17 17
18 tl_x = sTL_X; 18 tl_x = sTL_X;
19 br_x = sBR_X; 19 br_x = sBR_X;
20 if ( sTL_X > sBR_X ) 20 if ( sTL_X > sBR_X )
21 { 21 {
22 __debugbreak(); // check this code
22 br_x = sBR_X ^ sTL_X ^ sBR_X; // swap x's 23 br_x = sBR_X ^ sTL_X ^ sBR_X; // swap x's
23 tl_x = br_x ^ sBR_X ^ sTL_X; 24 tl_x = br_x ^ sBR_X ^ sTL_X;
24 } 25 }
25 tl_y = sTL_Y; 26 tl_y = sTL_Y;
26 br_y = sBR_Y; 27 br_y = sBR_Y;
27 if ( sTL_Y > sBR_Y ) 28 if ( sTL_Y > sBR_Y )
28 { 29 {
30 __debugbreak(); // check this code
29 br_y = sBR_Y ^ sTL_Y ^ sBR_Y; // swap y's 31 br_y = sBR_Y ^ sTL_Y ^ sBR_Y; // swap y's
30 tl_y = br_y ^ sBR_Y ^ sTL_Y; 32 tl_y = br_y ^ sBR_Y ^ sTL_Y;
31 } 33 }
32 this->uScreen_TL_X = tl_x; 34 this->uScreen_TL_X = tl_x;
33 this->uScreen_TL_Y = tl_y; 35 this->uScreen_TL_Y = tl_y;