line |
true |
false |
branch |
44
|
32 |
8 |
if ($options{'surface'}) { } |
49
|
8 |
0 |
if ($width and $height) { } |
68
|
1 |
39 |
if (exists $options{'color'}) |
76
|
1 |
0 |
if $disp |
81
|
0 |
0 |
if ($width and $height) { } |
113
|
5 |
74 |
if ($array) |
114
|
5 |
0 |
if $array |
137
|
5 |
69 |
unless ($array) |
156
|
0 |
0 |
if $_[1] and $_[1]->isa('SDL::Rect') |
166
|
11 |
0 |
if ($type and lc $type eq 'bmp' or lc substr($filename, -4, 4) eq '.bmp') { } |
169
|
0 |
11 |
unless $surface = SDL::Video::load_BMP($filename) |
176
|
0 |
0 |
unless 'SDL::Config'->has('SDL_image') |
181
|
0 |
0 |
if ($type) { } |
183
|
0 |
0 |
unless my $file = 'SDL::RWOps'->new_file($filename, 'rb') |
185
|
0 |
0 |
unless $surface = SDL::Image::load_typed_rw($file, 1, $type) |
188
|
0 |
0 |
unless $surface = SDL::Image::load($filename) |
194
|
11 |
0 |
if (SDL::Video::get_video_surface()) |
210
|
0 |
1 |
unless $_[0] |
211
|
0 |
1 |
if SDL::Video::flip($_[0]) == -1 |
220
|
2 |
1 |
if (not defined $rects or ref $rects eq 'ARRAY' and not ref $$rects[0]) { } |
222
|
1 |
1 |
if $rects |
239
|
0 |
6 |
unless ref $start eq 'ARRAY' |
241
|
0 |
6 |
unless ref $end eq 'ARRAY' |
244
|
0 |
6 |
unless ('SDL::Config'->has('SDL_gfx_primitives')) |
252
|
2 |
4 |
if ($antialias) { } |
258
|
0 |
6 |
if $result == -1 |
266
|
0 |
9 |
unless ('SDL::Config'->has('SDL_gfx_primitives')) |
271
|
0 |
9 |
unless ref $center eq 'ARRAY' and scalar @$center == 2 |
274
|
5 |
4 |
if (not $antialias) { } |
288
|
0 |
4 |
unless ('SDL::Config'->has('SDL_gfx_primitives')) |
293
|
0 |
4 |
unless ref $center eq 'ARRAY' and scalar @$center == 2 |
306
|
4 |
5 |
if ($antialias) { } |
342
|
0 |
0 |
unless ref $center eq 'ARRAY' and scalar @$center == 2 |
353
|
0 |
0 |
unless ref $center eq 'ARRAY' and scalar @$center == 2 |
356
|
0 |
0 |
if ($antialias) { } |
371
|
0 |
0 |
unless ref $center eq 'ARRAY' and scalar @$center == 2 |
394
|
0 |
3 |
unless ('SDL::Config'->has('SDL_gfx_primitives')) |
399
|
1 |
2 |
if ($font) |
400
|
1 |
0 |
if (ref $font eq 'HASH' and exists $$font{'data'} and exists $$font{'cw'} and exists $$font{'ch'}) { } |
407
|
0 |
3 |
unless ref $vector eq 'ARRAY' and scalar @$vector == 2 |
414
|
0 |
3 |
if $result == -1 |