Mercurial > mm7
comparison Mouse.cpp @ 2155:0a1438c16c2b
Render decoupling.
author | Nomad |
---|---|
date | Thu, 09 Jan 2014 17:29:17 +0200 |
parents | 9bd7522cdbbb |
children | e9625ad08541 |
comparison
equal
deleted
inserted
replaced
2154:9bd7522cdbbb | 2155:0a1438c16c2b |
---|---|
107 result = Point.y; | 107 result = Point.y; |
108 v2 = Point.x; | 108 v2 = Point.x; |
109 //} | 109 //} |
110 v1->uMouseClickX = v2; | 110 v1->uMouseClickX = v2; |
111 v1->uMouseClickY = result; | 111 v1->uMouseClickY = result; |
112 if ( pRenderer->bWindowMode ) | 112 if ( true/*pRenderer->bWindowMode*/) |
113 goto LABEL_16; | 113 goto LABEL_16; |
114 //if (pAsyncMouse) | 114 //if (pAsyncMouse) |
115 // goto LABEL_24; | 115 // goto LABEL_24; |
116 if ( v2 < 0 ) | 116 if ( v2 < 0 ) |
117 v2 = 0; | 117 v2 = 0; |
123 { | 123 { |
124 result = 479; | 124 result = 479; |
125 LABEL_16: | 125 LABEL_16: |
126 //if (pAsyncMouse) | 126 //if (pAsyncMouse) |
127 // goto LABEL_24; | 127 // goto LABEL_24; |
128 if ( pRenderer->bWindowMode && (v2 < 0 || result < 0 || v2 > 639 || result > 479) ) | 128 if (true/*pRenderer->bWindowMode*/ && (v2 < 0 || result < 0 || v2 > 639 || result > 479) ) |
129 goto LABEL_23; | 129 goto LABEL_23; |
130 } | 130 } |
131 if ( v1->field_C ) | 131 if ( v1->field_C ) |
132 LABEL_23: | 132 LABEL_23: |
133 v1->bActive = 0; | 133 v1->bActive = 0; |
233 if ( this->field_C ) | 233 if ( this->field_C ) |
234 { | 234 { |
235 this->field_F4 = 0; | 235 this->field_F4 = 0; |
236 return; | 236 return; |
237 } | 237 } |
238 if ( pRenderer->bWindowMode ) | 238 |
239 //if ( pRenderer->bWindowMode ) | |
239 { | 240 { |
240 if ( this->uMouseClickX < 0 || this->uMouseClickY < 0 || this->uMouseClickX > 639 || this->uMouseClickY > 479 ) | 241 if ( this->uMouseClickX < 0 || this->uMouseClickY < 0 || this->uMouseClickX > 639 || this->uMouseClickY > 479 ) |
241 { | 242 { |
242 this->field_F4 = 0; | 243 this->field_F4 = 0; |
243 return; | 244 return; |
244 } | 245 } |
245 } | 246 } |
246 else | 247 /*else |
247 { | 248 { |
248 if ( this->uMouseClickX < 0 ) | 249 if ( this->uMouseClickX < 0 ) |
249 this->uMouseClickX = 0; | 250 this->uMouseClickX = 0; |
250 if ( this->uMouseClickY < 0 ) | 251 if ( this->uMouseClickY < 0 ) |
251 this->uMouseClickY = 0; | 252 this->uMouseClickY = 0; |
252 if ( this->uMouseClickX > 639 ) | 253 if ( this->uMouseClickX > 639 ) |
253 this->uMouseClickX = 639; | 254 this->uMouseClickX = 639; |
254 if ( this->uMouseClickY > 479 ) | 255 if ( this->uMouseClickY > 479 ) |
255 this->uMouseClickY = 479; | 256 this->uMouseClickY = 479; |
256 } | 257 }*/ |
257 this->pCursorBitmapRect.x = this->uMouseClickX; | 258 this->pCursorBitmapRect.x = this->uMouseClickX; |
258 this->pCursorBitmapRect.w = this->uMouseClickY + this->field_5C[0]; | 259 this->pCursorBitmapRect.w = this->uMouseClickY + this->field_5C[0]; |
259 this->pCursorBitmapRect.y = this->uMouseClickY; | 260 this->pCursorBitmapRect.y = this->uMouseClickY; |
260 this->pCursorBitmapRect.z = this->uMouseClickX + this->uCursorBitmapPitch; | 261 this->pCursorBitmapRect.z = this->uMouseClickX + this->uCursorBitmapPitch; |
261 if ( this->uMouseClickX < 0 ) | 262 if ( this->uMouseClickX < 0 ) |