Subversion Repositories Kolibri OS

Rev

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

Rev 4078 Rev 4081
Line 140... Line 140...
140
	int id, key, mouse_clicked;
140
	int id, key, mouse_clicked;
141
	mouse mm;
141
	mouse mm;
Line 142... Line 142...
142
 
142
 
143
	mem_Init();
143
	mem_Init();
144
	if (param) strcpy(#folder_path, #param);
144
	if (param) strcpy(#folder_path, #param);
145
	list[SKINS].current = list[WALLPAPERS].current = 0;
145
	list[SKINS].current = list[WALLPAPERS].current = -1;
146
	list[SKINS].first = list[WALLPAPERS].first = 0;
146
	list[SKINS].first = list[WALLPAPERS].first = 0;
147
	GetFiles(WALLPAPERS);
147
	GetFiles(WALLPAPERS);
148
	list[active].SetSizes(0, 230, 350, 400-PANEL_H, 40, 18);
148
	list[active].SetSizes(0, 230, 350, 400-PANEL_H, 40, 18);
149
	SetEventMask(0x27);
149
	SetEventMask(0x27);
Line 152... Line 152...
152
	  switch(WaitEvent()) 
152
	  switch(WaitEvent()) 
153
	  {
153
	  {
154
	  	case evMouse:
154
	  	case evMouse:
155
	  		mm.get();
155
	  		mm.get();
156
	  		if (mm.vert) && (list[active].MouseScroll(mm.vert)) Draw_List();
156
	  		if (mm.vert) && (list[active].MouseScroll(mm.vert)) Draw_List();
157
	  		/*
-
 
158
	  		if (mouse_clicked)
157
	  		if (mouse_clicked)
159
	  		{
158
	  		{
160
	  			if (!mm.lkm) && (list[active].ProcessMouse(mm.x, mm.y)) Apply();
159
	  			if (!mm.lkm) && (active==SKINS) && (list[SKINS].ProcessMouse(mm.x, mm.y)) Apply();
-
 
160
	  			if (!mm.lkm) && (active==WALLPAPERS) && (list[WALLPAPERS].ProcessMouse(mm.x, mm.y)) Apply();
161
	  			mouse_clicked=0;
161
	  			mouse_clicked=0;
162
	  		}
162
	  		}
163
	  		if (mm.lkm) && (list[active].MouseOver(mm.x, mm.y)) mouse_clicked=1;
163
	  		if (mm.lkm) && (list[SKINS].MouseOver(mm.x, mm.y)) mouse_clicked=1;
164
	  		*/
-
 
165
	  		EAX = active;
-
 
166
	  		if (mm.lkm) 
-
 
167
	  		{
-
 
168
	  			if (active==SKINS) && (list[SKINS].ProcessMouse(mm.x, mm.y)) Apply();
-
 
169
	  			if if (active==WALLPAPERS) && (list[WALLPAPERS].ProcessMouse(mm.x, mm.y)) Apply();
-
 
170
	  		}
-
 
171
	  		break;
164
	  		break;
Line 172... Line 165...
172
 
165
 
173
		case evButton:
166
		case evButton:
174
			id=GetButtonID();
167
			id=GetButtonID();