Subversion Repositories Kolibri OS

Rev

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

Rev 5795 Rev 5796
Line 18... Line 18...
18
#include "..\lib\obj\libimg_lib.h"
18
#include "..\lib\obj\libimg_lib.h"
19
#include "..\lib\obj\libini.h"
19
#include "..\lib\obj\libini.h"
Line 20... Line 20...
20
 
20
 
Line 21... Line 21...
21
#include "..\lib\patterns\libimg_load_skin.h"
21
#include "..\lib\patterns\libimg_load_skin.h"
22
 
22
 
23
#define ABOUT_MESSAGE "'Pixies Player v1.31\n\nOpen file: O key\nChange skin: F1/F2
23
#define ABOUT_MESSAGE "'Pixies Player v1.32\n\nOpen file: O key\nChange skin: F1/F2
24
Play/Stop: Space or P key\nStart playing selected file: Enter
24
Play/Stop: Space or P key\nStart playing selected file: Enter
Line 25... Line 25...
25
Goto next/previous track: Ctrl + Left/Right
25
Goto next/previous track: Ctrl + Left/Right
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);
152
						z1 = Form.left + mouse.x - tmp_x;
154
						z1 = Form.left + mouse.x - tmp_x;
153
						z2 = Form.top + mouse.y - tmp_y;
155
						z2 = Form.top + mouse.y - tmp_y;
154
						if(z1<=10)z1=0;
-
 
155
						if(z2<=10)z2=0;
-
 
156
						if(z1>screen.width-Form.width-10)z1=screen.width-Form.width;
156
						if(z1<=10) || (z1>20000) z1=0; else if(z1>screen.width-Form.width-10)z1=screen.width-Form.width;
157
						if(z2>screen.height-Form.height-10)z2=screen.height-Form.height;
157
						if(z2<=10) || (z2>20000) z2=0; else if(z2>screen.height-Form.height-10)z2=screen.height-Form.height;
158
						//if(z2<10)z2=0;
-
 
159
						MoveSize(z1 , z2, OLD, OLD);
158
						MoveSize(z1 , z2, OLD, OLD);
160
						draw_window();
159
						draw_window();
161
					}
160
					}
162
					pause(1);
161
					pause(1);
163
				} while (mouse.lkm);
162
				} while (mouse.lkm);