Rev 5061 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5061 | Rev 5068 | ||
---|---|---|---|
Line 439... | Line 439... | ||
439 | 439 | ||
440 | unsigned char *bitmap; |
440 | unsigned char *bitmap; |
441 | int stride; |
441 | int stride; |
Line 442... | Line 442... | ||
442 | }; |
442 | }; |
443 | 443 | ||
444 | void Blit(void *bitmap, int dst_x, int dst_y, |
444 | static inline void Blit(void *bitmap, int dst_x, int dst_y, |
- | 445 | int src_x, int src_y, int w, int h, |
|
- | 446 | int src_w, int src_h, int stride) |
|
- | 447 | { |
|
- | 448 | volatile struct blit_call bc; |
|
- | 449 | ||
- | 450 | bc.dstx = dst_x; |
|
- | 451 | bc.dsty = dst_y; |
|
- | 452 | bc.w = w; |
|
- | 453 | bc.h = h; |
|
- | 454 | bc.srcx = src_x; |
|
- | 455 | bc.srcy = src_y; |
|
- | 456 | bc.srcw = src_w; |
|
- | 457 | bc.srch = src_h; |
|
- | 458 | bc.stride = stride; |
|
- | 459 | bc.bitmap = bitmap; |
|
- | 460 | ||
- | 461 | __asm__ __volatile__( |
|
Line -... | Line 462... | ||
- | 462 | "int $0x40" |
|
Line 445... | Line 463... | ||
445 | int src_x, int src_y, int w, int h, |
463 | ::"a"(73),"b"(0),"c"(&bc.dstx)); |