Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 7420 → Rev 7422

/programs/cmm/lib/fs.h
177,6 → 177,13
$int 0x40
}
 
inline fastcall void SetCurDir( ECX)
{
EAX=30;
EBX=1;
$int 0x40
}
 
//===================================================//
// //
// Misc //
/programs/cmm/lib/gui.h
193,7 → 193,7
PutShadow(x+1,y+h+3,w+1,1,skinned,1);
}
 
:void GrayScaleImage(dword color_image, w, h)
:dword GrayScaleImage(dword color_image, w, h)
{
dword i,gray,to,rr,gg,bb;
to = w*h*3 + color_image;
208,6 → 208,7
gray = sqrt(gray) / 3;
DSBYTE[i] = DSBYTE[i+1] = DSBYTE[i+2] = gray;
}
return gray;
}
 
:void ShadowImage(dword color_image, w, h, strength)
/programs/cmm/lib/keyboard.h
10,6 → 10,10
#define ASCII_KEY_INS 185
#define ASCII_KEY_SPACE 032
 
#define ASCII_KEY_PLUS 043
#define ASCII_KEY_MINUS 045
#define ASCII_KEY_EQU 061
 
#define ASCII_KEY_LEFT 176
#define ASCII_KEY_RIGHT 179
#define ASCII_KEY_DOWN 177
/programs/cmm/lib/kolibri.h
287,14 → 287,6
 
//------------------------------------------------------------------------------
 
inline fastcall void SetCurDir( ECX)
{
EAX=30;
EBX=1;
$int 0x40
}
 
 
//eax = ÿçûê ñèñòåìû (1=eng, 2=fi, 3=ger, 4=rus)
#define SYS_LANG_ENG 1
#define SYS_LANG_FIN 2
592,18 → 584,20
 
:void EventDragWindow()
{
proc_info Form1;
dword tmp_x,tmp_y;
dword z1,z2;
tmp_x = mouse.x;
tmp_y = mouse.y;
do {
GetProcessInfo(#Form1, SelfInfo);
mouse.get();
if (tmp_x!=mouse.x) || (tmp_y!=mouse.y)
{
z1 = Form.left + mouse.x - tmp_x;
z2 = Form.top + mouse.y - tmp_y;
if(z1<=10) || (z1>20000) z1=0; else if(z1>screen.width-Form.width-10)z1=screen.width-Form.width;
if(z2<=10) || (z2>20000) z2=0; else if(z2>screen.height-Form.height-10)z2=screen.height-Form.height;
z1 = Form1.left + mouse.x - tmp_x;
z2 = Form1.top + mouse.y - tmp_y;
if(z1<=10) || (z1>20000) z1=0; else if(z1>screen.width-Form1.width-10)z1=screen.width-Form1.width;
if(z2<=10) || (z2>20000) z2=0; else if(z2>screen.height-Form1.height-10)z2=screen.height-Form1.height;
MoveSize(z1 , z2, OLD, OLD);
draw_window();
}
/programs/cmm/lib/mouse.h
27,7 → 27,8
 
:struct MOUSE
{
signed x,y,xx,yy,lkm,mkm,pkm,key,tmp,tmp_time,hor,vert,down,up,move,click,dblclick,drag,left,top;
signed x,y,xx,yy,lkm,mkm,pkm,key,tmp,tmp_time,hor,vert,left,top;
bool down,up,move,click,dblclick,drag;
dword handle,_;
byte cmd;
void get();
187,8 → 188,6
vert = EBX;
}
 
 
 
:void MOUSE::slider()
{
signed _x,_y;
/programs/cmm/lib/obj/box_lib.h
81,6 → 81,29
PathShow_draw stdcall(#PathShow);
*/
 
//editbox flags
#define ed_pass 1b
#define ed_focus 10b //focused
#define ed_shift 100b //flag is set when Shift is pressed
#define ed_shift_on 1000b
#define ed_shift_bac 10000b //bif for Shift reset, if set the smth is selected
#define ed_left_fl 100000b
#define ed_offset_fl 1000000b
#define ed_insert 10000000b
#define ed_mouse_on 100000000b
#define ed_mous_adn_b 100011000b
#define ed_always_focus 100000000000000b
#define ed_figure_only 1000000000000000b //symbols only
#define ed_shift_cl 1111111111100011b
#define ed_shift_mcl 1111111111111011b
#define ed_shift_off 1111111111111011b
#define ed_shift_on_off 1111111111110111b
#define ed_shift_bac_cl 1111111111101111b
#define ed_right_fl 1111111111011111b
#define ed_offset_cl 1111111110111111b
#define ed_insert_cl 1111111101111111b
#define ed_mouse_on_off 1111111011111111b
 
struct edit_box{
dword width,
left,
/programs/cmm/lib/patterns/http_downloader.h
164,7 → 164,7
if(!strncmp(_in,"sys/",4)) return true;
if(!strncmp(_in,"tmp/",4)) return true;
if(!strncmp(_in,"usbhd",5)) return true;
if(!strncmp(_in,"kolibrios",10)) return true;
if(!strncmp(_in,"kolibrios",9)) return true;
return false;
}
 
/programs/cmm/lib/patterns/rgb.h
32,10 → 32,14
return _r + _g + _b;
}
 
:dword MixColors(dword _base, _overlying, byte a)
:dword MixColors(dword _base, _overlying, dword a)
{
_rgb rgb1, rgb2, rgb_final;
byte n_a;
dword n_a;
if (a<0) || (a>255) {
debug("Wrong alpha param in MixColors()!");
debugval("alpha", a);
}
 
rgb1.DwordToRgb(_base);
rgb2.DwordToRgb(_overlying);