… | |
… | |
6 | use IO::AIO; |
6 | use IO::AIO; |
7 | |
7 | |
8 | BEGIN { |
8 | BEGIN { |
9 | use XSLoader; |
9 | use XSLoader; |
10 | |
10 | |
11 | $VERSION = '0.5'; |
11 | $VERSION = '1.1'; |
12 | |
12 | |
13 | XSLoader::load "Gtk2::CV", $VERSION; |
13 | XSLoader::load "Gtk2::CV", $VERSION; |
14 | } |
14 | } |
15 | |
15 | |
16 | my $aio_source; |
16 | my $aio_source; |
… | |
… | |
51 | sub dealpha_compose($) { |
51 | sub dealpha_compose($) { |
52 | return $_[0] unless $_[0]->get_has_alpha; |
52 | return $_[0] unless $_[0]->get_has_alpha; |
53 | |
53 | |
54 | Gtk2::CV::dealpha_expose $_[0]->composite_color_simple ( |
54 | Gtk2::CV::dealpha_expose $_[0]->composite_color_simple ( |
55 | $_[0]->get_width, $_[0]->get_height, |
55 | $_[0]->get_width, $_[0]->get_height, |
56 | 'nearest', 100, 10, 0xa0a0a0ff, 0x606060ff, |
56 | 'nearest', 255, 16, 0xffc0c0c0, 0xff606060, |
57 | ) |
57 | ) |
58 | } |
58 | } |
59 | |
59 | |
60 | # TODO: make preferences |
60 | # TODO: make preferences |
61 | sub dealpha($) { |
61 | sub dealpha($) { |