Subversion Repositories Kolibri OS

Rev

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

Rev 7755 Rev 7764
Line 47... Line 47...
47
 
47
 
48
void DrawBufer::Fill(dword start_pointer, i_fill_color)
48
void DrawBufer::Fill(dword start_pointer, i_fill_color)
49
{
49
{
50
	dword i;
50
	dword i;
51
	dword max_i = bufw * bufh * 4 + buf_data + 8;
51
	dword max_i = bufw * bufh * 4 + buf_data + 8;
52
	EDI = fill_color = i_fill_color;
-
 
53
	for (ESI=buf_data+start_pointer+8; ESI
52
	fill_color = i_fill_color;
54
	//for (i=buf_data+start_pointer+8; i
53
	MEMSETD(buf_data+start_pointer+8, max_i-buf_data-start_pointer-8/4, fill_color);
Line 55... Line 54...
55
}
54
}
56
 
55
 
57
void DrawBufer::DrawBar(dword x, y, w, h, color)
56
void DrawBufer::DrawBar(dword x, y, w, h, color)
Line 66... Line 65...
66
}
65
}
Line 67... Line 66...
67
 
66
 
68
void DrawBufer::WriteText(dword x, y, byte fontType, dword color, str_offset)
67
void DrawBufer::WriteText(dword x, y, byte fontType, dword color, str_offset)
69
{
68
{
70
	#define BUGFIX_32000 32000
69
	#define BUGFIX_32000 32000
71
	int ydiv=0;
70
	dword ydiv=0;
72
	dword reserve_data_1, reserve_data_2;
71
	dword reserve_data_1, reserve_data_2;
73
	dword new_buf_offset;
72
	dword new_buf_offset;
74
	if (y + 30 >= bufh) IncreaseBufSize();
73
	if (y + 30 >= bufh) IncreaseBufSize();
75
	if (y < BUGFIX_32000) {
74
	if (y < BUGFIX_32000) {