Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 3448 → Rev 3449

/programs/cmm/browser/HTMLv.c
24,6 → 24,7
 
#define URL param
int use_truetype = 0;
char fontlol[64];
 
char editURL[sizeof(URL)],
page_links[12000],
50,41 → 51,6
#include "include\menu_rmb.h"
 
 
void tre()
{
char *font_picture;
char text[20];
int width=600;
int height=20;
// char palette[256*4];
int x;
text_out stdcall ("hello world\0",#fontlol, 17, 0x0, 10, 10);
text_out stdcall ("heyeyey!\0",#fontlol, 27, 0x0, 10, 30);
text_out stdcall ("alarm!\0", #fontlol, 47, 0x00FF0000, 10, 70);
/*
strcpy(#text, "hello world\0");
debug("get width\n");
get_width stdcall (#text, #fontinfo, height);
width=EAX;
for (x=0;x<20;x++) {
init_font(#fontinfo);
debug("yaya\n");
font_picture=mem_Alloc(width*height);
text[1]=30+x;
truetype stdcall (#text, #fontinfo, font_picture, width, height);
 
debug("blyad'!\n");
 
 
PutPaletteImage(font_picture,width,height,0,20*x,8,#palette);
mem_Free(font_picture); }*/
}
 
char fontlol[64];
 
void main()
{
int btn;
/programs/cmm/browser/TWB.h
163,7 → 163,7
return;
case HOME:
strcpy(#editURL, "http://kolibri-os.narod.ru");
strcpy(#editURL, "http://kolibri-n.org/index.php");
case GOTOURL:
case 0x0D: //enter
strcpy(#URL, #editURL);
/programs/cmm/browser/include/menu_rmb.h
39,7 → 39,8
if (id1<0) || (id1+1>items_num) || (mm.x<0) || (mm.x>ITEM_WIDTH) break;
if (mm.lkm) || (mm.pkm)
{
WB1.Scan(ITEMS_LIST[items_cur*2+1]);
ActivateWindow(GetProcessSlot(Form.ID));
SendWindowMessage(evKey, ITEMS_LIST[items_cur*2+1]);
ExitProcess();
}
if (items_cur<>id1)
50,9 → 51,6
break;
case evButton:
id1=GetButtonID()-10;
WB1.Scan(ITEMS_LIST[id1*2+1]);
ExitProcess();
break;
case evKey: