Subversion Repositories Kolibri OS

Rev

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

Rev 5626 Rev 5640
Line 161... Line 161...
161
 
161
 
162
 
162
 
163
void main()
163
void main()
164
{   
-
 
Line 165... Line 164...
165
	int id, key, mouse_clicked;
164
{   
166
	mouse mm;
165
	int id, key, mouse_clicked;
167
 
166
 
168
	mem_Init();
167
	mem_Init();
Line 185... Line 184...
185
				list[active].first = scroll1.position;
184
				list[active].first = scroll1.position;
186
				Draw_List();
185
				Draw_List();
187
				break;
186
				break;
188
			}
187
			}
Line 189... Line 188...
189
		
188
		
Line 190... Line 189...
190
	  		mm.get();
189
	  		mouse.get();
191
 
190
 
192
	  		if (mm.vert)
191
	  		if (mouse.vert)
193
	  		{
192
	  		{
194
	  			if (list[SKINS].active) && (list[SKINS].MouseScroll(mm.vert)) Draw_List();
193
	  			if (list[SKINS].active) && (list[SKINS].MouseScroll(mouse.vert)) Draw_List();
Line 195... Line 194...
195
	  			if (list[WALLPAPERS].active) && (list[WALLPAPERS].MouseScroll(mm.vert)) Draw_List();
194
	  			if (list[WALLPAPERS].active) && (list[WALLPAPERS].MouseScroll(mouse.vert)) Draw_List();
196
	  		} 
195
	  		} 
197
 
196
 
198
	  		if (mouse_clicked)
197
	  		if (mouse_clicked)
199
	  		{
198
	  		{
200
	  			if (!mm.lkm) && (list[SKINS].active) && (list[SKINS].ProcessMouse(mm.x, mm.y)) Apply();
199
	  			if (!mouse.lkm) && (list[SKINS].active) && (list[SKINS].ProcessMouse(mouse.x, mouse.y)) Apply();
201
	  			if (!mm.lkm) && (list[WALLPAPERS].active) && (list[WALLPAPERS].ProcessMouse(mm.x, mm.y)) Apply();
200
	  			if (!mouse.lkm) && (list[WALLPAPERS].active) && (list[WALLPAPERS].ProcessMouse(mouse.x, mouse.y)) Apply();
202
	  			mouse_clicked=0;
201
	  			mouse_clicked=0;
Line 203... Line 202...
203
	  		}
202
	  		}
204
	  		if (mm.lkm) && (list[SKINS].MouseOver(mm.x, mm.y)) mouse_clicked=1;
203
	  		if (mouse.lkm) && (list[SKINS].MouseOver(mouse.x, mouse.y)) mouse_clicked=1;