Subversion Repositories Kolibri OS

Rev

Rev 8330 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
8017 leency 1
 
8016 leency 2
{
4411 leency 3
	collection url;
8016 leency 4
	collection_int x,y,w,h;
8336 leency 5
8320 leency 6
 
8016 leency 7
	void add();
8336 leency 8
8320 leency 9
 
10
	bool draw();
11
};
4411 leency 12
4486 leency 13
 
8320 leency 14
{
15
	url.drop();
16
	x.drop();
8336 leency 17
	y.drop();
18
	w.drop();
19
	h.drop();
20
}
8320 leency 21
8017 leency 22
 
8336 leency 23
{
4411 leency 24
	url.add(_path);
8336 leency 25
	x.add(_x);
26
	y.add(_y);
27
	w.add(_w);
28
	h.add(_h);
29
}
8016 leency 30
31
 
8336 leency 32
void _img::draw_all(int _x, _y, _w, _h, _start)
8330 leency 33
{
8016 leency 34
	int i, img_y;
8320 leency 35
8016 leency 36
 
37
	{
38
		img_y = y.get(i);
8336 leency 39
8016 leency 40
 
8336 leency 41
		&& (cache.has(url.get(i))) draw(_x, _y, _w, _h, _start, i);
8330 leency 42
	}
8016 leency 43
}
44
*/
8336 leency 45
8016 leency 46
 
8330 leency 47
{
8020 leency 48
	int img_x, img_y, img_w, img_h, invisible_h=0;
8336 leency 49
	img_decode stdcall (cache.current_buf, cache.current_size, 0);
8320 leency 50
	if (EAX) {
51
		EDI = EAX;
8330 leency 52
8020 leency 53
 
8336 leency 54
		img_y = y.get(i);
55
		img_w = math.min(w.set(i, ESDWORD[EDI+4]), _w - img_x);
56
		img_h = math.min(h.set(i, ESDWORD[EDI+8]), _h + _start - img_y);
57
4411 leency 58
 
8336 leency 59
			invisible_h = _start - img_y;
60
			img_y = _start;
61
		}
62
4411 leency 63
 
8336 leency 64
		free(EDI);
8330 leency 65
	}
4411 leency 66
}
4491 leency 67