Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 5995 → Rev 5996

/programs/cmm/lib/font.h
73,8 → 73,8
}
$neg size.offset_y
$neg size.offset_x
size.height += size.offset_y; size.height++;
size.width += size.offset_x; size.width++;
size.height += size.offset_y+1;
size.width += size.offset_x+1;
IF(italic)
{
size.w_italic = size.height/3;
/programs/cmm/lib/kolibri.h
802,7 → 802,7
screen.height = GetScreenHeight();
//program_path_length = strlen(I_Path);
MOUSE_TIME = 50; //Default 500 ms.
DOUBLE_CLICK_DELAY = GetMouseDoubleClickDelay();
__generator = GetStartTime();
$push ebx
/programs/cmm/lib/mouse.h
22,11 → 22,11
* up - key release events
* move - event MOUSE movements
* click - when clicked
* dblclick - double-click the default 50 (500 ms)
* dblclick - double-click get system value
* drag - drag the element event
*/
 
:dword __TMP_TIME,MOUSE_TIME;
:dword __TMP_TIME,DOUBLE_CLICK_DELAY;
:struct MOUSE
{
signed x,y,xx,yy,lkm,mkm,pkm,key,tmp,tmp_time,hor,vert,down,up,move,click,dblclick,drag,left,top;
42,7 → 42,7
} mouse;
:void MOUSE::clearTime()
{
tmp_time = GetStartTime()+MOUSE_TIME;
tmp_time = GetStartTime()+DOUBLE_CLICK_DELAY;
}
:void MOUSE::show()
{
149,7 → 149,7
drag = false;
if(!move) click = true;
__TMP_TIME = GetStartTime();
if(__TMP_TIME-tmp_time<=MOUSE_TIME)
if(__TMP_TIME-tmp_time<=DOUBLE_CLICK_DELAY)
{
dblclick = true;
click = false;
212,4 → 212,54
pause(5);
}
 
 
/*=====================================================================================
=========================== ===========================
=========================== SYSTEM ===========================
=========================== ===========================
=====================================================================================*/
 
 
inline fastcall int GetMouseSpeed() {
$mov eax,18
$mov ebx,19
$mov ecx,0
$int 0x40
}
 
inline fastcall void SetMouseSpeed(EDX) {
$mov eax,18
$mov ebx,19
$mov ecx,1
$int 0x40
}
 
inline fastcall int GetMouseAcceleration() {
$mov eax,18
$mov ebx,19
$mov ecx,2
$int 0x40
}
 
inline fastcall void SetMouseAcceleration(EDX) {
$mov eax,18
$mov ebx,19
$mov ecx,3
$int 0x40
}
 
inline fastcall int GetMouseDoubleClickDelay() {
$mov eax,18
$mov ebx,19
$mov ecx,6
$int 0x40
}
 
inline fastcall void SetMouseDoubleClickDelay(DL) {
$mov eax,18
$mov ebx,19
$mov ecx,7
$int 0x40
}
 
#endif