Rev 448 | Rev 486 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 448 | Rev 485 | ||
---|---|---|---|
Line 491... | Line 491... | ||
491 | * ecx = width of the image |
491 | * ecx = width of the image |
492 | * edx = height of the image |
492 | * edx = height of the image |
493 | Returned value: |
493 | Returned value: |
494 | * function does not return value |
494 | * function does not return value |
495 | Remarks: |
495 | Remarks: |
496 | * There is no checks for correctness. The setting of too large |
- | |
497 | values will result that the background will contain data abroad |
496 | * Before calling functions 15.2 and 15.5 you should call this function |
498 | of buffer for the background image. Buffer size = 0x160000-0x10, |
497 | to set image size! |
499 | that corresponds to maximum size 800*600. (800*600*3=0x15F900) |
- | |
500 | * For update of the screen (after completion of a series of commands |
498 | * For update of the screen (after completion of a series of commands |
501 | working with a background) call subfunction 3. |
499 | working with a background) call subfunction 3. |
502 | * There is a pair function for get size of the background image - |
500 | * There is a pair function for get size of the background image - |
503 | subfunction 1 of function 39. |
501 | subfunction 1 of function 39. |
Line 513... | Line 511... | ||
513 | Returned value: |
511 | Returned value: |
514 | * function does not return value |
512 | * function does not return value |
515 | Remarks: |
513 | Remarks: |
516 | * Offset for a pixel with coordinates (x,y) is calculated as |
514 | * Offset for a pixel with coordinates (x,y) is calculated as |
517 | (x+y*xsize)*3. |
515 | (x+y*xsize)*3. |
518 | * If the given offset exceeds 0x160000-16 = 1.375 Mb - 16 bytes, |
516 | * If the given offset exceeds size sets by function 15.1, |
519 | the call is ignored. |
517 | the call is ignored. |
520 | * For update of the screen (after completion of a series of commands |
518 | * For update of the screen (after completion of a series of commands |
521 | working with a background) call subfunction 3. |
519 | working with a background) call subfunction 3. |
522 | * There is a pair function for get pixel on the background image - |
520 | * There is a pair function for get pixel on the background image - |
523 | subfunction 2 of function 39. |
521 | subfunction 2 of function 39. |
Line 559... | Line 557... | ||
559 | * edx = offset in data of the background image |
557 | * edx = offset in data of the background image |
560 | * esi = size of data in bytes = 3 * number of pixels |
558 | * esi = size of data in bytes = 3 * number of pixels |
561 | Returned value: |
559 | Returned value: |
562 | * function does not return value |
560 | * function does not return value |
563 | Remarks: |
561 | Remarks: |
564 | * If the block gets out abroad 0x160000-16 = 1.375 Mb - 16 bytes, |
562 | * If the block gets out abroad size sets by function 15.1, |
565 | the call is ignored. |
563 | the call is ignored. |
566 | * Color of each pixel is stored as 3-bytes value BBGGRR. |
564 | * Color of each pixel is stored as 3-bytes value BBGGRR. |
567 | * Pixels of the background image are written sequentially |
565 | * Pixels of the background image are written sequentially |
568 | from left to right, from up to down. |
566 | from left to right, from up to down. |
569 | * Offset of pixel with coordinates (x,y) is (x+y*xsize)*3. |
567 | * Offset of pixel with coordinates (x,y) is (x+y*xsize)*3. |