diff Mouse.cpp @ 2155:0a1438c16c2b

Render decoupling.
author Nomad
date Thu, 09 Jan 2014 17:29:17 +0200
parents 9bd7522cdbbb
children e9625ad08541
line wrap: on
line diff
--- a/Mouse.cpp	Thu Jan 09 14:36:48 2014 +0200
+++ b/Mouse.cpp	Thu Jan 09 17:29:17 2014 +0200
@@ -109,7 +109,7 @@
   //}
   v1->uMouseClickX = v2;
   v1->uMouseClickY = result;
-  if ( pRenderer->bWindowMode )
+  if ( true/*pRenderer->bWindowMode*/)
     goto LABEL_16;
   //if (pAsyncMouse)
   //  goto LABEL_24;
@@ -125,7 +125,7 @@
 LABEL_16:
     //if (pAsyncMouse)
     //  goto LABEL_24;
-    if ( pRenderer->bWindowMode && (v2 < 0 || result < 0 || v2 > 639 || result > 479) )
+    if (true/*pRenderer->bWindowMode*/ && (v2 < 0 || result < 0 || v2 > 639 || result > 479) )
       goto LABEL_23;
   }
   if ( v1->field_C )
@@ -235,7 +235,8 @@
       this->field_F4 = 0;
       return;
     }
-    if ( pRenderer->bWindowMode )
+
+    //if ( pRenderer->bWindowMode )
     {
       if ( this->uMouseClickX < 0 || this->uMouseClickY < 0 || this->uMouseClickX > 639 || this->uMouseClickY > 479 )
       {
@@ -243,7 +244,7 @@
         return;
       }
     }
-    else
+    /*else
     {
       if ( this->uMouseClickX < 0 )
         this->uMouseClickX = 0;
@@ -253,7 +254,7 @@
         this->uMouseClickX = 639;
       if ( this->uMouseClickY > 479 )
         this->uMouseClickY = 479;
-    }
+    }*/
     this->pCursorBitmapRect.x = this->uMouseClickX;
     this->pCursorBitmapRect.w = this->uMouseClickY + this->field_5C[0];
     this->pCursorBitmapRect.y = this->uMouseClickY;