Subversion Repositories Kolibri OS

Rev

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

Rev 9302 Rev 9304
Line 146... Line 146...
146
		memmov(o_bufpointer, bufpointer, bufsize);
146
		memmov(o_bufpointer, bufpointer, bufsize);
Line 147... Line 147...
147
 
147
 
148
		cur_encoding = CH_CP866;
148
		cur_encoding = CH_CP866;
149
		if (custom_encoding != -1) {
149
		if (custom_encoding != -1) {
150
			cur_encoding = custom_encoding;
150
			cur_encoding = custom_encoding;
151
			bufpointer = ChangeCharset(cur_encoding, "CP866", bufpointer);
151
			bufpointer = ChangeCharset(cur_encoding, CH_CP866, bufpointer);
152
			bufsize = strlen(bufpointer);
152
			bufsize = strlen(bufpointer);
153
		}
153
		}
Line 195... Line 195...
195
						}
195
						}
196
						debugln(sprintf(#param, "%s   x%i y%i %s", 
196
						debugln(sprintf(#param, "%s   x%i y%i %s", 
197
							#tag.name, draw_x, draw_y, #linebuf));
197
							#tag.name, draw_x, draw_y, #linebuf));
198
					}
198
					}
199
					//*/
199
					//*/
200
 
-
 
201
					RenderTextbuf();
200
					RenderTextbuf();
202
					if (debug_mode) { debugch('<'); if(!tag.opened)debugch('/'); debug(#tag.name); debugln(">"); }
201
					if (debug_mode) { debugch('<'); if(!tag.opened)debugch('/'); debug(#tag.name); debugln(">"); }
203
					$push cur_encoding
202
					$push cur_encoding
204
					SetStyle();
203
					SetStyle();
205
					$pop eax
204
					$pop eax
Line 255... Line 254...
255
//============================================================================================
254
//============================================================================================
256
void TWebBrowser::ChangeEncoding(int _new_encoding)
255
void TWebBrowser::ChangeEncoding(int _new_encoding)
257
{
256
{
258
	if (cur_encoding == _new_encoding) return;
257
	if (cur_encoding == _new_encoding) return;
259
	cur_encoding = _new_encoding;
258
	cur_encoding = _new_encoding;
260
	bufpointer = ChangeCharset(cur_encoding, "CP866", bufpointer);
259
	bufpointer = ChangeCharset(cur_encoding, CH_CP866, bufpointer);
261
	if (header) {
260
	if (header) {
262
		ChangeCharset(cur_encoding, "CP866", #header);
261
		ChangeCharset(cur_encoding, CH_CP866, #header);
263
		DrawTitle(#header);
262
		DrawTitle(#header);
264
	}
263
	}
265
}
264
}
266
//============================================================================================
265
//============================================================================================
267
scroll_bar scroll_wv = { 15,NULL,NULL,NULL,
266
scroll_bar scroll_wv = { 15,NULL,NULL,NULL,