Rev 6535 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6535 | Rev 8545 | ||
---|---|---|---|
1 | format coff |
1 | format coff |
2 | use32 ; Tell compiler to use 32 bit instructions |
2 | use32 ; Tell compiler to use 32 bit instructions |
3 | 3 | ||
4 | section '.init' code ; Keep this line before includes or GCC messes up call addresses |
4 | section '.init' code ; Keep this line before includes or GCC messes up call addresses |
5 | 5 | ||
6 | include '../../../programs/proc32.inc' |
6 | include '../../../programs/proc32.inc' |
7 | include '../../../programs/macros.inc' |
7 | include '../../../programs/macros.inc' |
8 | purge section,mov,add,sub |
8 | purge section,mov,add,sub |
9 | 9 | ||
10 | include '../../../programs/dll.inc' |
10 | include '../../../programs/dll.inc' |
11 | 11 | ||
12 | public init_libimg as '_kolibri_libimg_init' |
12 | public init_libimg as '_kolibri_libimg_init' |
13 | ;;; Returns 0 on success. -1 on failure. |
13 | ;;; Returns 0 on success. -1 on failure. |
14 | 14 | ||
15 | proc init_libimg |
15 | proc init_libimg |
16 | pusha |
16 | pusha |
17 | mcall 68,11 |
17 | mcall 68,11 |
18 | stdcall dll.Load, @IMPORT |
18 | stdcall dll.Load, @IMPORT |
19 | popa |
19 | popa |
20 | ret |
20 | ret |
21 | endp |
21 | endp |
22 | 22 | ||
23 | @IMPORT: |
23 | @IMPORT: |
24 | library lib_libimg, 'libimg.obj' |
24 | library lib_libimg, 'libimg.obj' |
25 | 25 | ||
26 | import lib_libimg, \ |
26 | import lib_libimg, \ |
27 | libimg_init, 'lib_init' , \ |
27 | libimg_init, 'lib_init' , \ |
28 | img_is_img, 'img_is_img' , \ |
28 | img_is_img, 'img_is_img' , \ |
29 | img_info, 'img_info' , \ |
29 | img_info, 'img_info' , \ |
30 | img_from_file, 'img_from_file', \ |
30 | img_from_file, 'img_from_file', \ |
31 | img_to_file, 'img_to_file', \ |
31 | img_to_file, 'img_to_file', \ |
32 | img_from_rgb, 'img_from_rgb', \ |
32 | img_from_rgb, 'img_from_rgb', \ |
33 | img_to_rgb, 'img_to_rgb', \ |
33 | img_to_rgb, 'img_to_rgb', \ |
34 | img_to_rgb2, 'img_to_rgb2', \ |
34 | img_to_rgb2, 'img_to_rgb2', \ |
35 | img_decode, 'img_decode', \ |
35 | img_decode, 'img_decode', \ |
36 | img_encode, 'img_encode', \ |
36 | img_encode, 'img_encode', \ |
37 | img_create, 'img_create', \ |
37 | img_create, 'img_create', \ |
38 | img_destroy, 'img_destroy', \ |
38 | img_destroy, 'img_destroy', \ |
39 | img_destroy_layer, 'img_destroy_layer', \ |
39 | img_destroy_layer, 'img_destroy_layer', \ |
40 | img_count, 'img_count', \ |
40 | img_count, 'img_count', \ |
41 | img_lock_bits, 'img_lock_bits', \ |
41 | img_lock_bits, 'img_lock_bits', \ |
42 | img_unlock_bits, 'img_unlock_bits', \ |
42 | img_unlock_bits, 'img_unlock_bits', \ |
43 | img_flip, 'img_flip', \ |
43 | img_flip, 'img_flip', \ |
44 | img_flip_layer, 'img_flip_layer', \ |
44 | img_flip_layer, 'img_flip_layer', \ |
45 | img_rotate, 'img_rotate', \ |
45 | img_rotate, 'img_rotate', \ |
46 | img_rotate_layer, 'img_rotate_layer', \ |
46 | img_rotate_layer, 'img_rotate_layer', \ |
47 | img_draw, 'img_draw' |
47 | img_draw, 'img_draw', \ |
48 | 48 | img_blend, 'img_blend', \ |
|
- | 49 | img_convert, 'img_convert', \ |
|
- | 50 | img_resize_data, 'img_resize_data', \ |
|
- | 51 | img_scale, 'img_scale' |
|
- | 52 | ||
49 | public libimg_init as '_libimg_init' |
53 | public libimg_init as '_libimg_init' |
50 | ; public img_is_img as '_img_is_img' |
- | |
51 | ;public img_info as '_img_info' |
- | |
52 | ;public img_from_file as '_img_from_file' |
- | |
53 | ;public img_to_file as '_img_to_file' |
- | |
54 | ;public img_from_rgb as '_img_from_rgb' |
- | |
55 | public img_to_rgb as '_img_to_rgb' |
54 | public img_to_rgb as '_img_to_rgb' |
56 | public img_to_rgb2 as '_img_to_rgb2' |
55 | public img_to_rgb2 as '_img_to_rgb2' |
57 | public img_decode as '_img_decode' |
56 | public img_decode as '_img_decode' |
58 | public img_encode as '_img_encode' |
57 | public img_encode as '_img_encode' |
59 | public img_create as '_img_create' |
58 | public img_create as '_img_create' |
60 | public img_destroy as '_img_destroy' |
59 | public img_destroy as '_img_destroy' |
61 | public img_destroy_layer as '_img_destroy_layer' |
60 | public img_destroy_layer as '_img_destroy_layer' |
62 | public img_count as '_img_count' |
61 | public img_count as '_img_count' |
63 | ;public img_lock_bits as '_img_lock_bits' |
62 | public img_flip as '_img_flip' |
64 | ;public img_unlock_bits as '_img_unlock_bits' |
- | |
65 | public img_flip as '_img_flip' |
- | |
66 | public img_flip_layer as '_img_flip_layer' |
63 | public img_flip_layer as '_img_flip_layer' |
67 | public img_rotate as '_img_rotate' |
64 | public img_rotate as '_img_rotate' |
68 | public img_rotate_layer as '_img_rotate_layer' |
65 | public img_rotate_layer as '_img_rotate_layer' |
69 | public img_draw as '_img_draw' |
66 | public img_draw as '_img_draw' |
70 | 67 | public img_blend as '_img_blend' |
|
- | 68 | public img_convert as '_img_convert' |
|
- | 69 | public img_resize_data as '_img_resize_data' |
|
- | 70 | public img_scale as '_img_scale' |
|
- | 71 |