Subversion Repositories Kolibri OS

Rev

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

Rev 4026 Rev 4074
Line 48... Line 48...
48
#include "include\unicode_tags.h"
48
#include "include\unicode_tags.h"
49
#include "include\img_cache.h"
49
#include "include\img_cache.h"
50
#include "include\some_code.h"
50
#include "include\some_code.h"
51
#include "include\parce_tag.h"
51
#include "include\parce_tag.h"
52
 
52
#include "DrawBuf.h"
-
 
53
 
Line 53... Line 54...
53
//=======================================================================
54
//=======================================================================
54
dword drawbuf;
-
 
55
void DrawBufInit()
-
 
56
{
-
 
57
	free(drawbuf);
-
 
58
	drawbuf = malloc(WB1.width * WB1.line_h +4 * 4 + 8); //+1 for good luck
-
 
59
	ESDWORD[drawbuf] = WB1.width;
-
 
60
	ESDWORD[drawbuf+4] = WB1.line_h;
-
 
61
}
-
 
62
void DrawBufFill()
-
 
63
{
-
 
64
	int i;
-
 
65
	for (i=0; i
-
 
66
}
-
 
67
void DrawBufBar(dword x, y, w, h, color)
-
 
68
{
-
 
69
	int i, j;
-
 
70
	for (j=0; j
-
 
71
	{
-
 
72
		for (i = y+j*WB1.width+x*4; i
-
 
73
	}
-
 
74
}
-
 
Line 75... Line -...
75
 
-
 
76
char shift[]={8,8,4,4};
-
 
77
void DrawBufSkew(dword x, y, w, h)
-
 
78
{
-
 
79
	int i, j;
-
 
80
	stolbec++;
-
 
81
	for (j=0; j<=3; j++)
-
 
82
	{
-
 
83
		for (i = y+j*WB1.width+x+w+h*4; i>y+j*WB1.width+x+h-12*4 ; i-=4)
-
 
84
								ESDWORD[drawbuf+i+8] = ESDWORD[-shift[j]+drawbuf+i+8];
-
 
85
	}
-
 
86
}
-
 
87
 
-
 
88
void TextGoDown(int left1, top1, width1)
-
 
89
{
-
 
90
	if (!stroka) DrawBar(WB1.left, WB1.top, WB1.width, 5, bg_color); //çàêðàøèâàåì ôîí íàä ïåðâîé ñòðîêîé
-
 
91
	stroka++;
-
 
92
	if (blq_text) stolbec = 8; else stolbec = 0;
-
 
93
	if (li_text) stolbec = li_tab * 5;
-
 
94
	if (top1>=WB1.top) && ( top1 < WB1.height+WB1.top-10)  && (!anchor)
-
 
95
	{
-
 
96
		PutPaletteImage(drawbuf+8, WB1.width, WB1.line_h, left1-5, top1, 32,0);
-
 
97
		DrawBufFill();
-
 
98
	}
-
 
Line 99... Line 55...
99
}
55
 
100
 
56
 
101
void TWebBrowser::DrawPage()
57
void TWebBrowser::DrawPage()