@rb 0.62: fix memory usage, RMB using

git-svn-id: svn://kolibrios.org@3281 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2013-02-27 10:17:08 +00:00
parent 51563dce61
commit a487d52031
5 changed files with 23 additions and 21 deletions

View File

@ -0,0 +1,8 @@
@del lang.h--
@echo #define LANG_ENG 1 >lang.h--
..\C--\C-- rb.c
@del @rb
@del warning.txt
@del lang.h--
@rename rb.com @rb
@pause

View File

@ -1,9 +0,0 @@
del lang.h--
echo #define LANG_ENG 1 >lang.h--
..\C--\C-- rb.c
del @rb
del warning.txt
del lang.h--
rename rb.com @rb
..\C--\kpack @rb
pause

View File

@ -0,0 +1,8 @@
@del lang.h--
@echo #define LANG_RUS 1 >lang.h--
..\C--\C-- rb.c
@del @rb
@del warning.txt
@del lang.h--
@rename rb.com @rb
@pause

View File

@ -1,9 +0,0 @@
del lang.h--
echo #define LANG_RUS 1 >lang.h--
..\C--\C-- rb.c
del @rb
del warning.txt
del lang.h--
rename rb.com @rb
..\C--\kpack @rb
pause

View File

@ -1,5 +1,6 @@
//@RB - v0.6 //@RB - v0.62
#define MEMSIZE 0x3E80
#include "..\lib\kolibri.h" #include "..\lib\kolibri.h"
#include "..\lib\strings.h" #include "..\lib\strings.h"
#include "..\lib\figures.h" #include "..\lib\figures.h"
@ -39,7 +40,7 @@ dword stak[100];
void main() void main()
{ {
mouse mm; mouse mm;
byte thread_id; byte can_show;
SetEventMask(100000b); SetEventMask(100000b);
loop() switch(WaitEvent()) loop() switch(WaitEvent())
@ -47,10 +48,13 @@ void main()
case evMouse: case evMouse:
mm.get(); mm.get();
if (GetPointOwner(mm.x, mm.y)==1) && (mm.pkm) if (GetPointOwner(mm.x, mm.y)<>1) can_show = 0;
if (mm.pkm) can_show = 1;
if (!mm.pkm) && (can_show)
{ {
SwitchToAnotherThread(); SwitchToAnotherThread();
CreateThread(#window,#stak); CreateThread(#window,#stak);
can_show = 0;
} }
} }
} }