Subversion Repositories Kolibri OS

Rev

Rev 230 | Rev 254 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1.  
  2. LOAD_FROM_FILE  equ 0
  3. LOAD_FROM_MEM   equ 1
  4. LOAD_INDIRECT   equ 2
  5. LOAD_SYSTEM     equ 3
  6. VIDEO_FREE      equ 2
  7.  
  8. struc BITMAPINFOHEADER {
  9.   .biSize          dd ? ; DWORD
  10.   .biWidth         dd ? ; LONG
  11.   .biHeight        dd ? ; LONG
  12.   .biPlanes        dw ? ; WORD
  13.   .biBitCount      dw ? ; WORD
  14.   .biCompression   dd ? ; DWORD
  15.   .biSizeImage     dd ? ; DWORD
  16.   .biXPelsPerMeter dd ? ; LONG
  17.   .biYPelsPerMeter dd ? ; LONG
  18.   .biClrUsed       dd ? ; DWORD
  19.   .biClrImportant  dd ? ; DWORD
  20. }
  21.  
  22. virtual at 0
  23.   BI BITMAPINFOHEADER
  24. end virtual
  25.  
  26. align 4
  27. proc vesa_init_cursor stdcall, dst:dword, src:dword
  28.            locals
  29.              rBase    dd ?
  30.              pQuad    dd ?
  31.              pBits    dd ?
  32.              pAnd     dd ?
  33.              width    dd ?
  34.              height   dd ?
  35.              counter  dd ?
  36.            endl
  37.  
  38.            mov esi, [src]
  39.            add esi,[esi+18]
  40.            mov eax,esi
  41.  
  42.            cmp [esi+BI.biBitCount], 24
  43.            je .img_24
  44.            cmp [esi+BI.biBitCount], 8
  45.            je .img_8
  46.            cmp [esi+BI.biBitCount], 4
  47.            je .img_4
  48.  
  49. .img_2:
  50.            add eax, [esi]
  51.            mov [pQuad],eax
  52.            add eax,8
  53.            mov [pBits],eax
  54.            add eax, 128
  55.            mov [pAnd],eax
  56.            mov eax,[esi+4]
  57.            mov [width],eax
  58.            mov ebx,[esi+8]
  59.            shr ebx,1
  60.            mov [height],ebx
  61.  
  62.            mov edi, [dst]
  63.            add edi, 32*31*4
  64.            mov [rBase],edi
  65.  
  66.            mov esi,[pQuad]
  67. .l21:
  68.            mov ebx, [pBits]
  69.            mov ebx, [ebx]
  70.            bswap ebx
  71.            mov eax, [pAnd]
  72.            mov eax, [eax]
  73.            bswap eax
  74.            mov [counter], 32
  75. @@:
  76.            xor edx, edx
  77.            shl eax,1
  78.            setc dl
  79.            dec edx
  80.  
  81.            xor ecx, ecx
  82.            shl ebx,1
  83.            setc cl
  84.            mov ecx, [esi+ecx*4]
  85.            and ecx, edx
  86.            and edx, 0xFF000000
  87.            or edx, ecx
  88.            mov [edi], edx
  89.  
  90.            add edi, 4
  91.            dec [counter]
  92.            jnz @B
  93.  
  94.            add [pBits], 4
  95.            add [pAnd], 4
  96.            mov edi,[rBase]
  97.            sub edi,128
  98.            mov [rBase],edi
  99.            sub [height],1
  100.            jnz .l21
  101.            ret
  102.  
  103. .img_4:
  104.            add eax, [esi]
  105.            mov [pQuad],eax
  106.            add eax,64
  107.            mov [pBits],eax
  108.            add eax, 0x200
  109.            mov [pAnd],eax
  110.            mov eax,[esi+4]
  111.            mov [width],eax
  112.            mov ebx,[esi+8]
  113.            shr ebx,1
  114.            mov [height],ebx
  115.  
  116.            mov edi, [dst]
  117.            add edi, 32*31*4
  118.            mov [rBase],edi
  119.  
  120.            mov esi,[pQuad]
  121.            mov ebx, [pBits]
  122. .l4:
  123.            mov eax, [pAnd]
  124.            mov eax, [eax]
  125.            bswap eax
  126.            mov [counter], 16
  127. @@:
  128.            xor edx, edx
  129.            shl eax,1
  130.            setc dl
  131.            dec edx
  132.  
  133.            movzx ecx, byte [ebx]
  134.            and cl, 0xF0
  135.            shr ecx, 2
  136.            mov ecx, [esi+ecx]
  137.            and ecx, edx
  138.            and edx, 0xFF000000
  139.            or edx, ecx
  140.            mov [edi], edx
  141.  
  142.            xor edx, edx
  143.            shl eax,1
  144.            setc dl
  145.            dec edx
  146.  
  147.            movzx ecx, byte [ebx]
  148.            and cl, 0x0F
  149.            mov ecx, [esi+ecx*4]
  150.            and ecx, edx
  151.            and edx, 0xFF000000
  152.            or edx, ecx
  153.            mov [edi+4], edx
  154.  
  155.            inc ebx
  156.            add edi, 8
  157.            dec [counter]
  158.            jnz @B
  159.  
  160.            add [pAnd], 4
  161.            mov edi,[rBase]
  162.            sub edi,128
  163.            mov [rBase],edi
  164.            sub [height],1
  165.            jnz .l4
  166.            ret
  167. .img_8:
  168.            add eax, [esi]
  169.            mov [pQuad],eax
  170.            add eax,1024
  171.            mov [pBits],eax
  172.            add eax, 1024
  173.            mov [pAnd],eax
  174.            mov eax,[esi+4]
  175.            mov [width],eax
  176.            mov ebx,[esi+8]
  177.            shr ebx,1
  178.            mov [height],ebx
  179.  
  180.            mov edi, [dst]
  181.            add edi, 32*31*4
  182.            mov [rBase],edi
  183.  
  184.            mov esi,[pQuad]
  185.            mov ebx, [pBits]
  186. .l81:
  187.            mov eax, [pAnd]
  188.            mov eax, [eax]
  189.            bswap eax
  190.            mov [counter], 32
  191. @@:
  192.            xor edx, edx
  193.            shl eax,1
  194.            setc dl
  195.            dec edx
  196.  
  197.            movzx ecx,  byte [ebx]
  198.            mov ecx, [esi+ecx*4]
  199.            and ecx, edx
  200.            and edx, 0xFF000000
  201.            or edx, ecx
  202.            mov [edi], edx
  203.  
  204.            inc ebx
  205.            add edi, 4
  206.            dec [counter]
  207.            jnz @B
  208.  
  209.            add [pAnd], 4
  210.            mov edi,[rBase]
  211.            sub edi,128
  212.            mov [rBase],edi
  213.            sub [height],1
  214.            jnz .l81
  215.            ret
  216. .img_24:
  217.            add eax, [esi]
  218.            mov [pQuad],eax
  219.            add eax, 0xC00
  220.            mov [pAnd],eax
  221.            mov eax,[esi+BI.biWidth]
  222.            mov [width],eax
  223.            mov ebx,[esi+BI.biHeight]
  224.            shr ebx,1
  225.            mov [height],ebx
  226.  
  227.            mov edi, [dst]
  228.            add edi, 32*31*4
  229.            mov [rBase],edi
  230.  
  231.            mov esi,[pAnd]
  232.            mov ebx, [pQuad]
  233. .row_24:
  234.            mov eax, [esi]
  235.            bswap eax
  236.            mov [counter], 32
  237. @@:
  238.            xor edx, edx
  239.            shl eax,1
  240.            setc dl
  241.            dec edx
  242.  
  243.            mov ecx, [ebx]
  244.            and ecx, 0x00FFFFFF
  245.            and ecx, edx
  246.            and edx, 0xFF000000
  247.            or edx, ecx
  248.            mov [edi], edx
  249.            add ebx, 3
  250.            add edi, 4
  251.            dec [counter]
  252.            jnz @B
  253.  
  254.            add esi, 4
  255.            mov edi,[rBase]
  256.            sub edi,128
  257.            mov [rBase],edi
  258.            sub [height],1
  259.            jnz .row_24
  260.            ret
  261. endp
  262.  
  263. align 4
  264. proc alloc_cursor
  265.  
  266.            pushfd
  267.            cli
  268.            mov ebx, [cursor_start]
  269.            mov ecx, [cursor_end]
  270. .l1:
  271.            bsf eax,[ebx];
  272.            jnz .found
  273.            add ebx,4
  274.            cmp ebx, ecx
  275.            jb .l1
  276.            popfd
  277.            xor eax,eax
  278.            ret
  279. .found:
  280.            btr [ebx], eax
  281.            popfd
  282.  
  283.            mov [cursor_start],ebx
  284.            sub ebx, cursor_map
  285.            shl ebx, 3
  286.            add eax,ebx
  287.            shl eax,3
  288.            lea eax,[cursors+eax+eax*2]
  289.  
  290.            xor ebx, ebx
  291.            mov [eax+CURSOR.magic], 'CURS'
  292.            mov [eax+CURSOR.size],  CURSOR_SIZE
  293.            mov [eax+CURSOR.pid], ebx
  294.            mov [eax+CURSOR.hot_x], ebx
  295.            mov [eax+CURSOR.hot_y], ebx
  296.            ret
  297. endp
  298.  
  299. align 4
  300. proc free_cursor
  301.            pushfd
  302.            cli
  303.            xor edx, edx
  304.            mov ecx, CURSOR_SIZE
  305.            sub eax, cursors
  306.            div ecx
  307.            test edx, edx
  308.            jnz .exit
  309.  
  310.            mov ebx, cursor_map
  311.            bts [ebx], eax
  312.            shr eax, 3
  313.            and eax, not 3
  314.            add eax, ebx
  315.            cmp [cursor_start], eax
  316.            ja @f
  317. .exit:
  318.            popfd
  319.            ret
  320. @@:
  321.            mov [cursor_start], eax
  322.            popfd
  323.            ret
  324. endp
  325.  
  326.  
  327. align 4
  328. proc set_cursor stdcall, hcursor:dword
  329.            mov eax, [hcursor]
  330.            cmp [eax+CURSOR.magic], 'CURS'
  331.            jne .fail
  332.            cmp [eax+CURSOR.size], CURSOR_SIZE
  333.            jne .fail
  334.            mov ebx, [CURRENT_TASK]
  335.            shl ebx, 8
  336.            xchg eax, [ebx+PROC_BASE+APPDATA.cursor]
  337.            ret
  338. .fail:
  339.            mov eax, [def_cursor]
  340.            mov ebx, [CURRENT_TASK]
  341.            shl ebx, 8
  342.            xchg eax, [ebx+PROC_BASE+APPDATA.cursor]
  343.            ret
  344. endp
  345.  
  346. proc vesa_cursor stdcall, hcursor:dword, src:dword, flags:dword
  347.  
  348.            stdcall kernel_alloc, 0x1000
  349.            test eax, eax
  350.            jz .fail
  351.  
  352.            mov edi, [hcursor]
  353.            mov [edi+CURSOR.base], eax
  354.  
  355.            mov esi, [src]
  356.            mov ebx, [flags]
  357.            cmp bx, LOAD_INDIRECT
  358.            je .indirect
  359.  
  360.            movzx ecx, word [esi+10]
  361.            movzx edx, word [esi+12]
  362.            mov [edi+CURSOR.hot_x], ecx
  363.            mov [edi+CURSOR.hot_y], edx
  364.  
  365.            stdcall vesa_init_cursor, eax, esi
  366.            mov eax, [hcursor]
  367. .fail:
  368.            ret
  369. .indirect:
  370.            shr ebx, 16
  371.            movzx ecx, bh
  372.            movzx edx, bl
  373.            mov [eax+CURSOR.hot_x], ecx
  374.            mov [eax+CURSOR.hot_y], edx
  375.  
  376.            xchg edi, eax
  377.            mov ecx, 1024
  378.            cld
  379.            rep movsd
  380.            ret
  381. endp
  382.  
  383. align 4
  384. proc load_cursor stdcall, src:dword, flags:dword
  385.            locals
  386.              handle  dd ?
  387.            endl
  388.  
  389.            xor eax, eax
  390.            mov [handle], eax
  391.            cmp word [flags], LOAD_FROM_FILE
  392.            jne @F
  393.  
  394.            stdcall load_file, [src]
  395.            test eax, eax
  396.            jz .exit
  397.            mov [src], eax
  398. @@:
  399.            call alloc_cursor
  400.            test eax, eax
  401.            jz .fail
  402.  
  403.            mov ebx, [CURRENT_TASK]
  404.            shl ebx, 5
  405.            mov ebx, [0x3000+ebx+4]
  406.            mov [eax+CURSOR.pid], ebx
  407.  
  408.            stdcall [create_cursor], eax, [src], [flags]
  409.            mov [handle], eax
  410. .fail:
  411.            cmp word [flags], LOAD_FROM_FILE
  412.            jne .exit
  413.            stdcall kernel_free, [src]
  414. .exit:
  415.            mov eax, [handle]
  416.            ret
  417. endp
  418.  
  419. align 4
  420. proc delete_cursor stdcall, hcursor:dword
  421.            locals
  422.              hsrv       dd ?
  423.              io_code    dd ?
  424.              input      dd ?
  425.              inp_size   dd ?
  426.              output     dd ?
  427.              out_size   dd ?
  428.            endl
  429.  
  430.            mov esi, [hcursor]
  431.            cmp [esi+CURSOR.magic], 'CURS'
  432.            jne .fail
  433.            cmp [esi+CURSOR.size], CURSOR_SIZE
  434.            jne .fail
  435.  
  436.            mov ebx, [CURRENT_TASK]
  437.            shl ebx, 5
  438.            mov ebx, [0x3000+ebx+4]
  439.            cmp ebx, [esi+CURSOR.pid]
  440.            jne .fail
  441.  
  442.            mov ebx, [CURRENT_TASK]
  443.            shl ebx, 8
  444.            cmp esi, [ebx+PROC_BASE+APPDATA.cursor]
  445.            jne @F
  446.            mov eax, [def_cursor]
  447.            mov [ebx+PROC_BASE+APPDATA.cursor], eax
  448. @@:
  449.            mov eax, [hw_cursor]
  450.            test eax, eax
  451.            jz @F
  452.  
  453.            xor ebx, ebx
  454.            mov ecx, [esi+CURSOR.base]
  455.            mov [hsrv], eax
  456.            mov [io_code], VIDEO_FREE
  457.            mov [input], ecx
  458.            mov [inp_size], 4
  459.            mov [output], ebx
  460.            mov [out_size], ebx
  461.  
  462.            lea eax, [hsrv]
  463.            stdcall srv_handler, eax
  464.            jmp .exit
  465. @@:
  466.            stdcall kernel_free, [esi+CURSOR.base]
  467. .exit:
  468.            mov eax, [hcursor]
  469.            call free_cursor
  470.            ret
  471. .fail:
  472.            ret
  473. endp
  474.  
  475. align 4
  476. proc init_cursors
  477.            cmp [0xfe0c],word 0x13
  478.            jbe .fail
  479.  
  480.            movzx eax, byte [ScreenBPP]
  481.            mov ebx, [SCR_BYTES_PER_LINE]
  482.            cmp eax, 32
  483.            jne @F
  484.            sub ebx, 128
  485.            jmp .init
  486. @@:
  487.            cmp eax, 24
  488.            jne .fail
  489.            sub ebx, 96
  490. .init:
  491.            mov [cur_def_interl], ebx
  492.  
  493.            xor eax, eax
  494.            mov edi, cursors
  495.            mov ecx, CURSOR_SIZE*16
  496.            cld
  497.            rep stosd
  498.  
  499.            not eax
  500.            mov [cursor_map], eax
  501.            mov [cursor_map+4], eax
  502.            mov edx, cursor_map
  503.            mov [cursor_start], edx
  504.            add edx, 8
  505.            mov [cursor_end], edx
  506.  
  507.            stdcall load_driver, drv_hw_mouse
  508.            mov [hw_cursor], eax
  509.            test eax, eax
  510.            jz .sw_mouse
  511.  
  512.            stdcall load_cursor, def_arrow, dword LOAD_FROM_MEM
  513.            mov [def_cursor], eax
  514.            ret
  515. .sw_mouse:
  516.            mov [create_cursor], vesa_cursor
  517.  
  518.            stdcall load_cursor, def_arrow, dword LOAD_FROM_MEM
  519.            mov [def_cursor], eax
  520.  
  521.            mov ecx, [SCR_X_SIZE]
  522.            mov edx, [SCR_Y_SIZE]
  523.            inc ecx
  524.            inc edx
  525.            mov [scr_width], ecx
  526.            mov [scr_height], edx
  527.  
  528.            movzx ebx, byte [ScreenBPP]
  529.            cmp ebx, 32
  530.            jne @F
  531.  
  532.            mov dword [set_hw_cursor], cursor_32
  533.            mov dword [hw_restore], restore_32
  534.            ret
  535. @@:
  536.            mov dword [set_hw_cursor], cursor_24
  537.            mov dword [hw_restore], restore_24
  538.            ret
  539. .fail:
  540.            xor eax, eax
  541.            mov dword [set_hw_cursor], eax
  542.            mov dword [hw_restore], eax
  543.            ret
  544. endp
  545.  
  546. align 4
  547. proc restore_24 stdcall, x:dword, y:dword
  548.            locals
  549.              w  dd ?
  550.            endl
  551.  
  552.            mov edi, [cur_saved_base]
  553.            mov edx, [cur_saved_h]
  554.            mov ebx, [cur_saved_interl]
  555.  
  556.            mov esi, cur_saved_data
  557. @@:
  558.            mov ecx, [cur_saved_w]
  559.            lea ecx, [ecx+ecx*2]
  560.            rep movsb
  561.            add edi, ebx
  562.            dec edx
  563.            jnz @B
  564.            ret
  565. endp
  566.  
  567. align 4
  568. proc restore_32 stdcall, x:dword, y:dword
  569.            locals
  570.              w  dd ?
  571.            endl
  572.  
  573.            mov edi, [cur_saved_base]
  574.            mov edx, [cur_saved_h]
  575.            mov ebx, [cur_saved_interl]
  576.  
  577.            mov esi, cur_saved_data
  578. @@:
  579.            mov ecx, [cur_saved_w]
  580.            rep movsd
  581.            add edi, ebx
  582.            dec edx
  583.            jnz @B
  584.            ret
  585. endp
  586.  
  587. align 4
  588. proc cursor_24 stdcall, hcursor:dword, x:dword, y:dword
  589.            locals
  590.              w      dd ?
  591.              h      dd ?
  592.              st     dd ?
  593.              _dx     dd ?
  594.              _dy     dd ?
  595.            endl
  596.  
  597.            mov esi, [hcursor]
  598.            mov ecx, [x]
  599.            mov eax, [y]
  600.            mov ebx, [BytesPerScanLine]
  601.  
  602.            xor edx, edx
  603.            sub ecx, [esi+CURSOR.hot_x]
  604.            mov [x], ecx
  605.            sets dl
  606.            dec edx
  607.            and ecx, edx       ;clip x to 0<=x
  608.            mov edi, ecx
  609.            sub edi, [x]
  610.            mov [_dx], edi
  611.  
  612.            xor edx, edx
  613.            sub eax, [esi+CURSOR.hot_y]
  614.            mov [y], eax
  615.            sets dl
  616.            dec edx
  617.            and eax, edx       ;clip y to 0<=y
  618.            mov edi, eax
  619.            sub edi, [y]
  620.            mov [_dy], edi
  621.  
  622.            mul ebx
  623.            lea esi, [ecx+ecx*2]
  624.            add esi, [LFBAddress]
  625.            add esi, eax
  626.            mov [cur_saved_base],esi
  627.  
  628.            mov edi, [scr_width]
  629.            mov edx, [scr_height]
  630.            mov eax, 32
  631.  
  632.            sub edi, ecx
  633.            cmp edi, eax
  634.            jng @F
  635.            mov edi, eax
  636. @@:
  637.            sub edi, [_dx]
  638.  
  639.            sub edx, [y]
  640.            cmp edx, eax
  641.            jng @F
  642.            mov edx, eax
  643. @@:
  644.            sub edx, [_dy]
  645.  
  646.            mov [w], edi
  647.            mov [h], edx
  648.            mov [cur_saved_w], edi
  649.            mov [cur_saved_h], edx
  650.  
  651.            sub eax, edi
  652.            shl eax, 2       ;lea eax, [eax+eax*2]
  653.            lea edi, [edi+edi*2]
  654.            sub ebx, edi
  655.            mov [cur_saved_interl], ebx
  656.  
  657.            mov edi, cur_saved_data
  658. @@:
  659.            mov ecx, [w]
  660.            lea ecx, [ecx+ecx*2]
  661.            rep movsb
  662.            add esi, ebx
  663.            dec edx
  664.            jnz @B
  665.  
  666. ;draw cursor
  667.            mov edx, eax
  668.            mov edi, [cur_saved_base]
  669.            mov eax, [_dy]
  670.            shl eax, 5
  671.            add eax, [_dx]
  672.            shl eax, 2
  673.  
  674.            mov esi, [hcursor]
  675.            mov esi, [esi+CURSOR.base]
  676.            add esi, eax
  677. .row:
  678.            mov ecx, [w]
  679. .pix:
  680.            lodsd
  681.            test eax, 0xFF000000
  682.            jz @F
  683.  
  684.            mov word [edi], ax
  685.            shr eax, 16
  686.            mov [edi+2],al
  687. @@:
  688.            add edi, 3
  689.            dec ecx
  690.            jnz .pix
  691.  
  692.            add esi, edx
  693.            add edi, ebx
  694.            dec [h]
  695.            jnz .row
  696.            ret
  697. endp
  698.  
  699. align 4
  700. proc cursor_32 stdcall, hcursor:dword, x:dword, y:dword
  701.            locals
  702.              w      dd ?
  703.              h      dd ?
  704.              st     dd ?
  705.              _dx     dd ?
  706.              _dy     dd ?
  707.            endl
  708.  
  709.            mov esi, [hcursor]
  710.            mov ecx, [x]
  711.            mov eax, [y]
  712.            mov ebx, [BytesPerScanLine]
  713.  
  714.            xor edx, edx
  715.            sub ecx, [esi+CURSOR.hot_x]
  716.            mov [x], ecx
  717.            sets dl
  718.            dec edx
  719.            and ecx, edx       ;clip x to 0<=x
  720.            mov edi, ecx
  721.            sub edi, [x]
  722.            mov [_dx], edi
  723.  
  724.            xor edx, edx
  725.            sub eax, [esi+CURSOR.hot_y]
  726.            mov [y], eax
  727.            sets dl
  728.            dec edx
  729.            and eax, edx       ;clip y to 0<=y
  730.            mov edi, eax
  731.            sub edi, [y]
  732.            mov [_dy], edi
  733.  
  734.            mul ebx
  735.            lea esi, [eax+ecx*4]
  736.            add esi, [LFBAddress]
  737.            mov [cur_saved_base],esi
  738.  
  739.            mov edi, [scr_width]
  740.            mov edx, [scr_height]
  741.            mov eax, 32
  742.  
  743.            sub edi, ecx
  744.            cmp edi, eax
  745.            jng @F
  746.            mov edi, eax
  747. @@:
  748.            sub edi, [_dx]
  749.  
  750.            sub edx, [y]
  751.            cmp edx, eax
  752.            jng @F
  753.            mov edx, eax
  754. @@:
  755.            sub edx, [_dy]
  756.  
  757.            mov [w], edi
  758.            mov [h], edx
  759.            mov [cur_saved_w], edi
  760.            mov [cur_saved_h], edx
  761.  
  762.            sub eax, edi
  763.            shl eax, 2
  764.            shl edi, 2
  765.            sub ebx, edi
  766.            mov [cur_saved_interl], ebx
  767.  
  768.            mov edi, cur_saved_data
  769. @@:
  770.            mov ecx, [w]
  771.            rep movsd
  772.            add esi, ebx
  773.            dec edx
  774.            jnz @B
  775.  
  776. ;draw cursor
  777.            mov edx, eax
  778.            mov edi, [cur_saved_base]
  779.            mov eax, [_dy]
  780.            shl eax, 5
  781.            add eax, [_dx]
  782.            shl eax, 2
  783.  
  784.            mov esi, [hcursor]
  785.            mov esi, [esi+CURSOR.base]
  786.            add esi, eax
  787. .row:
  788.            mov ecx, [w]
  789. .pix:
  790.            lodsd
  791.            test eax, 0xFF000000
  792.            jz @F
  793.            mov [edi], eax
  794. @@:
  795.            add edi, 4
  796.            dec ecx
  797.            jnz .pix
  798.            add esi, edx
  799.            add edi, ebx
  800.            dec [h]
  801.            jnz .row
  802.            ret
  803. endp
  804.  
  805. align 4
  806. def_arrow:
  807.   file 'arrow.cur'
  808.  
  809.