Subversion Repositories Kolibri OS

Rev

Rev 5798 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5798 Rev 5803
Line 147... Line 147...
147
				tmp_y = mouse.y;
147
				tmp_y = mouse.y;
148
				do {
148
				do {
149
					mouse.get();
149
					mouse.get();
150
					if (tmp_x!=mouse.x) || (tmp_y!=mouse.y) 
150
					if (tmp_x!=mouse.x) || (tmp_y!=mouse.y) 
151
					{
151
					{
152
						debugi(mouse.x);
-
 
153
						debugi(tmp_x);
-
 
154
						z1 = Form.left + mouse.x - tmp_x;
152
						z1 = Form.left + mouse.x - tmp_x;
155
						z2 = Form.top + mouse.y - tmp_y;
153
						z2 = Form.top + mouse.y - tmp_y;
156
						if(z1<=10) || (z1>20000) z1=0; else if(z1>screen.width-Form.width-10)z1=screen.width-Form.width;
154
						if(z1<=10) || (z1>20000) z1=0; else if(z1>screen.width-Form.width-10)z1=screen.width-Form.width;
157
						if(z2<=10) || (z2>20000) z2=0; else if(z2>screen.height-Form.height-10)z2=screen.height-Form.height;
155
						if(z2<=10) || (z2>20000) z2=0; else if(z2>screen.height-Form.height-10)z2=screen.height-Form.height;
158
						MoveSize(z1 , z2, OLD, OLD);
156
						MoveSize(z1 , z2, OLD, OLD);