Subversion Repositories Kolibri OS

Rev

Rev 5517 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5517 Rev 5518
Line 168... Line 168...
168
	}
168
	}
Line 169... Line 169...
169
 
169
 
170
	return 0;
170
	return 0;
Line -... Line 171...
-
 
171
}
171
}
172
 
172
 
173
 
173
void __stdcall SetBackColor(int back_color, int width, int height, char *from_zone)
-
 
174
{
174
void __stdcall SetBackColor(int back_color, int width, int height, char *from_zone)
175
	int i,j;
-
 
176
	unsigned char bcr,bcg,bcb;
-
 
177
	
175
{
178
	bcr=back_color<<16;
176
	unsigned char bcr = back_color>>16;
Line -... Line 177...
-
 
177
	unsigned char bcg = back_color>>8;
-
 
178
	unsigned char bcb = back_color;
179
	bcg=back_color<<8;
179
 
180
	bcb=back_color;
180
	unsigned int i;
181
		
181
	unsigned int max_i = width * height * 3;
182
	for (j=0;j
-
 
183
	{
182
	for (i=0; i < max_i; i+=3) 
184
		for (i=0;i
-
 
185
		{
183
	{
186
			from_zone[(j*width+i)*3]=back_color;
-
 
187
			from_zone[(j*width+i)*3+1]=back_color>>8;
184
		from_zone[i]   = bcb;
-
 
185
		from_zone[i+1] = bcg;
188
			from_zone[(j*width+i)*3+2]=back_color>>16;
186
		from_zone[i+2] = bcr;		
Line -... Line 187...
-
 
187
	}
-
 
188
 
-
 
189
}
189
		}
190
 
190
	}
191
 
191
}
192
 
192
 
193
 
193
int __stdcall text_out(char *string, char *buffer, int height, int color,int back_color, int x, int y) {
194
int __stdcall text_out(char *string, char *buffer, int height, int color,int back_color, int x, int y) {