313c313,318 < $img->{-surface} or die "FATAL: Couldn't load `$file' into a SDL::Surface.\n"; --- > if ($SDL::VERSION >= 1.20) { > $$img or die "FATAL: Couldn't load `$file' into a SDL::Surface.\n"; > } > else { > $img->{-surface} or die "FATAL: Couldn't load `$file' into a SDL::Surface.\n"; > } 1480c1485,1490 < fb_c_stuff::shrink($app->{-surface}, $background->display_format->{-surface}, $high_posx, $high_posy, $high_rect->{-rect}, 4); --- > if ($SDL::VERSION >= 1.20) { > fb_c_stuff::shrink($$app, ${($background)->display_format()}, $high_posx, $high_posy, $$high_rect, 4); > } > else { > fb_c_stuff::shrink($app->{-surface}, $background->display_format->{-surface}, $high_posx, $high_posy, $high_rect->{-rect}, 4); > } 1649c1659,1664 < fb_c_stuff::effect($app->{-surface}, $background->display_format->{-surface}); --- > if ($SDL::VERSION >= 1.20) { > fb_c_stuff::effect($$app, ${($background)->display_format()}); > } > else { > fb_c_stuff::effect($app->{-surface}, $background->display_format->{-surface}); > }