Subversion Repositories Kolibri OS

Rev

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

Rev 7780 Rev 7781
Line 135... Line 135...
135
	if (o_bufpointer) o_bufpointer=free(o_bufpointer);
135
	if (o_bufpointer) o_bufpointer=free(o_bufpointer);
136
	o_bufpointer = malloc(bufsize);
136
	o_bufpointer = malloc(bufsize);
137
	memmov(o_bufpointer, bufpointer, bufsize);
137
	memmov(o_bufpointer, bufpointer, bufsize);
138
	if (custom_encoding != -1) {
138
	if (custom_encoding != -1) {
139
		cur_encoding = custom_encoding;
139
		cur_encoding = custom_encoding;
140
		bufpointer = ChangeCharset(cur_encoding*10+#charsets, "CP866", bufpointer);
140
		bufpointer = ChangeCharset(cur_encoding, "CP866", bufpointer);
141
	}
141
	}
142
}
142
}
143
//============================================================================================
143
//============================================================================================
144
void TWebBrowser::AddCharToTheLine(unsigned char _char)
144
void TWebBrowser::AddCharToTheLine(unsigned char _char)
145
{
145
{
Line 545... Line 545...
545
//============================================================================================
545
//============================================================================================
546
void TWebBrowser::ChangeEncoding(int _new_encoding)
546
void TWebBrowser::ChangeEncoding(int _new_encoding)
547
{
547
{
548
	if (cur_encoding == _new_encoding) return;
548
	if (cur_encoding == _new_encoding) return;
549
	cur_encoding = _new_encoding;
549
	cur_encoding = _new_encoding;
550
	bufpointer = ChangeCharset(cur_encoding*10+#charsets, "CP866", bufpointer);
550
	bufpointer = ChangeCharset(cur_encoding, "CP866", bufpointer);
551
	if (header) {
551
	if (header) {
552
		ChangeCharset(cur_encoding*10+#charsets, "CP866", #header);
552
		ChangeCharset(cur_encoding, "CP866", #header);
553
		DrawTitle(#header);
553
		DrawTitle(#header);
554
	}
554
	}
555
}
555
}
556
//============================================================================================
556
//============================================================================================
557
void TWebBrowser::NewLine()
557
void TWebBrowser::NewLine()