Rev 2693 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2693 | Rev 3068 | ||
---|---|---|---|
Line 14... | Line 14... | ||
14 | uint32_t cursor_nwse; |
14 | uint32_t cursor_nwse; |
15 | uint32_t cursor_nesw; |
15 | uint32_t cursor_nesw; |
16 | 16 | ||
17 | static pos_t old_pos; |
17 | int win_font; |
Line -... | Line 18... | ||
- | 18 | ||
- | 19 | ||
- | 20 | static pos_t old_pos; |
|
18 | 21 | ||
Line 19... | Line 22... | ||
19 | ctrl_t *mouse_capture = NULL; |
22 | ctrl_t *mouse_capture = NULL; |
Line 20... | Line 23... | ||
20 | 23 | ||
Line 512... | Line 515... | ||
512 | cursor_we = load_cursor(res_cursor_we, LOAD_FROM_MEM); |
515 | cursor_we = load_cursor(res_cursor_we, LOAD_FROM_MEM); |
513 | cursor_nwse = load_cursor(res_cursor_nwse, LOAD_FROM_MEM); |
516 | cursor_nwse = load_cursor(res_cursor_nwse, LOAD_FROM_MEM); |
514 | cursor_nesw = load_cursor(res_cursor_nesw, LOAD_FROM_MEM); |
517 | cursor_nesw = load_cursor(res_cursor_nesw, LOAD_FROM_MEM); |
515 | return 1; |
518 | |
516 | } |
519 | win_font = init_fontlib(); |
- | 520 | ||
- | 521 | return 1; |
|
- | 522 | } |
|
517 | 523 | ||
518 | void init_winlib(void) |
524 | int fini_winlib() |
Line -... | Line 525... | ||
- | 525 | { |
|
- | 526 | int ret; |
|
- | 527 | ||
- | 528 | ret = destroy_cursor(cursor_nesw); |
|
- | 529 | ret |= destroy_cursor(cursor_nwse); |
|
- | 530 | ret |= destroy_cursor(cursor_we); |
|
- | 531 | ret |= destroy_cursor(cursor_ns); |
|
- | 532 | ||
- | 533 | return ret; |
|
- | 534 | }; |
|
- | 535 | ||
- | 536 | ||
- | 537 | ||
- | 538 | void init_winlib(void) |
|
519 | { |
539 | { |
520 | __asm__ __volatile__( |
540 | __asm__ __volatile__( |
521 | "int $0x40" |
541 | "int $0x40" |
522 | ::"a"(40), "b"(0xC0000027)); |
542 | ::"a"(40), "b"(0xC0000027)); |
523 | 543 | ||
Line 567... | Line 587... | ||
567 | 587 | ||
568 | __asm__ __volatile__( |
588 | __asm__ __volatile__( |
Line 569... | Line 589... | ||
569 | "int $0x40" |
589 | "int $0x40" |
570 | ::"a"(73),"b"(0),"c"(&bc.dstx)); |
590 | ::"a"(73),"b"(0x20),"c"(&bc.dstx)); |
571 | 591 | ||
Line 572... | Line 592... | ||
572 | }; |
592 | }; |
Line 573... | Line 593... | ||
573 | 593 | ||
574 | ctrl_t *get_child(ctrl_t *ctrl, int x, int y) |
594 | ctrl_t *get_child(ctrl_t *ctrl, int x, int y) |