Added 'C' flag to 0-th system function: don't fill working area

Modified Tinypad to use 'C' flag

git-svn-id: svn://kolibrios.org@303 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Mihail Semenyako (mike.dld) 2007-01-30 21:54:34 +00:00
parent d1b95f89ef
commit d51f1259a0
8 changed files with 11 additions and 8 deletions

View File

@ -33,7 +33,7 @@
¨á¯®«ì§ã¥âáï ¯®¤äã­ªæ¨ï 1 ä㭪樨 71 ¨á¯®«ì§ã¥âáï ¯®¤äã­ªæ¨ï 1 ä㭪樨 71
* B = 1 - ª®®à¤¨­ âë ¢á¥å £à ä¨ç¥áª¨å ¯à¨¬¨â¨¢®¢ § ¤ îâáï * B = 1 - ª®®à¤¨­ âë ¢á¥å £à ä¨ç¥áª¨å ¯à¨¬¨â¨¢®¢ § ¤ îâáï
®â­®á¨â¥«ì­® ª«¨¥­â᪮© ®¡« á⨠®ª­  ®â­®á¨â¥«ì­® ª«¨¥­â᪮© ®¡« á⨠®ª­ 
* C § à¥§¥à¢¨à®¢ ­ (ãáâ ­ ¢«¨¢ ©â¥ ¢ 0) * C = 1 - ­¥ § ×א ט¨¢ גל א <D790>®חדמ ®<>« בגל ¯א¨ ®גא¨ב®¢×¥ ®×­ 
* D = 0 - ­®à¬ «ì­ ï § «¨¢ª  à ¡®ç¥© ®¡« áâ¨, 1 - £à ¤¨¥­â­ ï * D = 0 - ­®à¬ «ì­ ï § «¨¢ª  à ¡®ç¥© ®¡« áâ¨, 1 - £à ¤¨¥­â­ ï
‘«¥¤ãî騥 ¯ à ¬¥âàë ¯à¥¤­ §­ ç¥­ë ¤«ï ®ª®­ ⨯  I ¨ II ¨ ‘«¥¤ãî騥 ¯ à ¬¥âàë ¯à¥¤­ §­ ç¥­ë ¤«ï ®ª®­ ⨯  I ¨ II ¨
¨£­®à¨àãîâáï ¤«ï á⨫¥© Y=1,3: ¨£­®à¨àãîâáï ¤«ï á⨫¥© Y=1,3:

View File

@ -32,7 +32,7 @@ Parameters:
subfunction 1 of function 71 subfunction 1 of function 71
* B = 1 - coordinates of all graphics primitives are relative to * B = 1 - coordinates of all graphics primitives are relative to
window client area window client area
* C is reserved (set to 0) * C = 1 - don't fill working area on window draw
* D = 0 - normal filling of the working area, 1 - gradient * D = 0 - normal filling of the working area, 1 - gradient
The following parameters are intended for windows The following parameters are intended for windows
of a type I and II, and ignored for styles Y=1,3: of a type I and II, and ignored for styles Y=1,3:

View File

@ -346,6 +346,8 @@ drawwindow_IV:
sub ecx,4 sub ecx,4
sub edx,4 sub edx,4
mov edi,[esi+WDATA.cl_workarea] mov edi,[esi+WDATA.cl_workarea]
test edi,0x40000000
jnz _noinside2
call [drawbar] call [drawbar]
_noinside2: _noinside2:

View File

@ -737,6 +737,8 @@ drawwindow_I:
mov ecx,[esi+WDATA.box.width] mov ecx,[esi+WDATA.box.width]
mov edx,[esi+WDATA.box.height] mov edx,[esi+WDATA.box.height]
mov edi,[esi+WDATA.cl_workarea] mov edi,[esi+WDATA.cl_workarea]
test edi,0x40000000
jnz noinside
call [drawbar] call [drawbar]
noinside: noinside:
@ -888,6 +890,8 @@ drawwindow_III:
sub ecx,4 sub ecx,4
sub edx,4 sub edx,4
mov edi,[esi+WDATA.cl_workarea] mov edi,[esi+WDATA.cl_workarea]
test edi,0x40000000
jnz noinside2
call [drawbar] call [drawbar]
noinside2: noinside2:

View File

@ -1,5 +1,4 @@
@erase lang.inc
@echo lang fix en >lang.inc @echo lang fix en >lang.inc
@fasm tinypad.asm tinypad.bin @fasm tinypad.asm tinypad
@erase lang.inc @erase lang.inc
@pause @pause

View File

@ -1,4 +1,3 @@
@erase lang.inc
@echo lang fix et >lang.inc @echo lang fix et >lang.inc
@fasm tinypad.asm tinypad @fasm tinypad.asm tinypad
@erase lang.inc @erase lang.inc

View File

@ -1,5 +1,4 @@
@erase lang.inc
@echo lang fix ru >lang.inc @echo lang fix ru >lang.inc
@fasm tinypad.asm tinypad.bin @fasm tinypad.asm tinypad
@erase lang.inc @erase lang.inc
@pause @pause

View File

@ -15,7 +15,7 @@ func drawwindow ;///// DRAW WINDOW ///////////////////////////////////////////
m2m [sc.work],dword[color_tbl.back] m2m [sc.work],dword[color_tbl.back]
mov edx,[sc.work] mov edx,[sc.work]
add edx,0x33000000 add edx,0x73000000
mov ebx,[mainwnd_pos.x-2] mov ebx,[mainwnd_pos.x-2]
mov bx,word[mainwnd_pos.w] mov bx,word[mainwnd_pos.w]
mov ecx,[mainwnd_pos.y-2] mov ecx,[mainwnd_pos.y-2]