/kernel/trunk/docs/sysfuncr.txt |
---|
502,10 → 502,7 |
®§¢à é ¥¬®¥ § 票¥: |
* äãªæ¨ï ¥ ¢®§¢à é ¥â § 票ï |
¬¥ç ¨ï: |
* ஢¥à®ª ª®à४â®áâì ¥ ¤¥« ¥âáï. áâ ®¢ª ᫨誮¬ ¡®«ìè¨å |
§ 票© ¯à¨¢¥¤ñâ ª ⮬ã, çâ® ¢ ä® ¢®©¤ãâ ¤ ë¥ § £à ¨æ¥© |
¡ãä¥à ä®®¢®£® ¨§®¡à ¦¥¨ï. §¬¥à ¡ãä¥à = 0x160000-0x10, çâ® |
ᮮ⢥âáâ¢ã¥â ¬ ªá¨¬ «ìë¬ à §¬¥à ¬ 800*600. (800*600*3=0x15F900) |
* 맮¢ äãªæ¨¨ ®¡ï§ ⥫¥ ¯¥à¥¤ ¢ë§®¢®¬ äãªæ¨© 15.2 ¨ 15.5 |
* «ï ®¡®¢«¥¨ï íªà (¯®á«¥ § ¢¥à襨ï á¥à¨¨ ª®¬ ¤, à ¡®â îé¨å á |
ä®®¬) ¢ë§ë¢ ©â¥ ¯®¤äãªæ¨î 3 ¯¥à¥à¨á®¢ª¨ ä® . |
* áâì ¯ à ï äãªæ¨ï ¯®«ã票ï à §¬¥à®¢ ä®®¢®£® ¨§®¡à ¦¥¨ï - |
524,8 → 521,8 |
¬¥ç ¨ï: |
* ¬¥é¥¨¥ ¤«ï â®çª¨ á ª®®à¤¨ â ¬¨ (x,y) ¢ëç¨á«ï¥âáï ª ª |
(x+y*xsize)*3. |
* ᫨ 㪠§ ®¥ ᬥ饨¥ ¯à¥¢ëè ¥â 0x160000-16 = |
1.375 Mb - 16 bytes, ¢ë§®¢ ¨£®à¨àã¥âáï. |
* ᫨ 㪠§ ®¥ ᬥ饨¥ ¯à¥¢ëè ¥â ãáâ ®¢«¥ë© äãªæ¨¥© 15.1 à §¬¥à, |
¢ë§®¢ ¨£®à¨àã¥âáï. |
* «ï ®¡®¢«¥¨ï íªà (¯®á«¥ § ¢¥à襨ï á¥à¨¨ ª®¬ ¤, à ¡®â îé¨å á |
ä®®¬) ¢ë§ë¢ ©â¥ ¯®¤äãªæ¨î 3 ¯¥à¥à¨á®¢ª¨ ä® . |
* áâì ¯ à ï äãªæ¨ï ¯®«ã票ï â®çª¨ á ä®®¢®£® ¨§®¡à ¦¥¨ï - |
569,8 → 566,8 |
®§¢à é ¥¬®¥ § 票¥: |
* äãªæ¨ï ¥ ¢®§¢à é ¥â § 票ï |
¬¥ç ¨ï: |
* ᫨ ¡«®ª ¢ë«¥§ ¥â § £à ¨æã 0x160000-16 = 1.375 Mb - 16 bytes, |
â® ¢ë§®¢ ¨£®à¨àã¥âáï. |
* ᫨ 㪠§ ®¥ ᬥ饨¥ ¯à¥¢ëè ¥â ãáâ ®¢«¥ë© äãªæ¨¥© 15.1 à §¬¥à, |
¢ë§®¢ ¨£®à¨àã¥âáï. |
* ¢¥â ª ¦¤®£® ¯¨ªá¥«ï åà ¨âáï ª ª 3-¡ ©â ï ¢¥«¨ç¨ BBGGRR. |
* ¨ªá¥«¨ ä®®¢®£® ¨§®¡à ¦¥¨ï § ¯¨áë¢ îâáï ¯®á«¥¤®¢ â¥«ì® |
á«¥¢ ¯à ¢®, ᢥàåã ¢¨§. |
/kernel/trunk/docs/sysfuncs.txt |
---|
493,10 → 493,8 |
Returned value: |
* function does not return value |
Remarks: |
* There is no checks for correctness. The setting of too large |
values will result that the background will contain data abroad |
of buffer for the background image. Buffer size = 0x160000-0x10, |
that corresponds to maximum size 800*600. (800*600*3=0x15F900) |
* Before calling functions 15.2 and 15.5 you should call this function |
to set image size! |
* For update of the screen (after completion of a series of commands |
working with a background) call subfunction 3. |
* There is a pair function for get size of the background image - |
515,7 → 513,7 |
Remarks: |
* Offset for a pixel with coordinates (x,y) is calculated as |
(x+y*xsize)*3. |
* If the given offset exceeds 0x160000-16 = 1.375 Mb - 16 bytes, |
* If the given offset exceeds size sets by function 15.1, |
the call is ignored. |
* For update of the screen (after completion of a series of commands |
working with a background) call subfunction 3. |
561,7 → 559,7 |
Returned value: |
* function does not return value |
Remarks: |
* If the block gets out abroad 0x160000-16 = 1.375 Mb - 16 bytes, |
* If the block gets out abroad size sets by function 15.1, |
the call is ignored. |
* Color of each pixel is stored as 3-bytes value BBGGRR. |
* Pixels of the background image are written sequentially |
/kernel/trunk/kernel.asm |
---|
2363,7 → 2363,7 |
cmp eax,2 ; SET PIXEL |
jnz nosb2 |
mov edx,0x160000-16 |
mov edx,[mem_BACKGROUND] |
cmp edx,ebx |
jbe nosb2 |
mov edx,[ebx] |
3221,12 → 3221,7 |
mov [MOUSE_BACKGROUND],byte 0 ; no mouse under |
mov [MOUSE_DOWN],byte 0 ; react to mouse up/down |
mov ecx,10 ; wait 1/10 second |
.wmrl3: |
call [draw_pointer] |
mov eax,1 |
call delay_hs |
loop .wmrl3 |
mov [window_move_pr],0 |
3234,23 → 3229,6 |
ret |
;type_background_1: |
; cmp [0xfff0],byte 0 ; background update ? |
; jz temp_nobackgr |
; mov [0xfff0],byte 2 |
; call change_task |
; mov [draw_data+32+0],dword 0 |
; mov [draw_data+32+4],dword 0 |
; mov eax,[ScreenWidth |
; mov ebx,[0xfe04] |
; mov [draw_data+32+8],eax |
; mov [draw_data+32+12],ebx |
; call drawbackground |
; mov [0xfff0],byte 0 |
; mov [MOUSE_BACKGROUND],byte 0 |
;temp_nobackgr: |
; ret |
uglobal |
window_move_pr dd 0x0 |
window_move_eax dd 0x0 |