Thread SDL::Tool::Graphic::zoom - Will nicht.... (3 answers)
Opened by jlorek at 2006-12-14 01:20

jlorek
 2006-12-14 01:20
#72537 #72537
User since
2006-12-14
2 Artikel
BenutzerIn
[Homepage] [default_avatar]
Hi!
Ich habe folgenden kleinen Code:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
use strict;
use SDL;
use SDL::App;
use SDL::Event;
use SDL::TTFont;
use SDL::Color;
use SDL::Tool::Graphic;

my $app = SDL::App->new(
-title => 'myTE -> Developing...',
-width => 800,
-height => 600,
-depth => 16,
-flags => SDL_DOUBLEBUF | SDL_HWSURFACE | SDL_HWACCEL,
);

my $back = SDL::Surface->new( -name => 'c.jpg' );

SDL::Tool::Graphic::zoom($back, 1, 1, 1);

$back->blit(0, $app, 0);

while (1) {
$app->sync();
$app->delay(100);
}
Nur bekomme ich beim Ausführen den Fehler:
Code: (dl )
1
2
3
SDL_Init 65535
ALSA lib pcm_dmix.c:819:(snd_pcm_dmix_open) unable to open slave
SDL::Tool::Graphic::zoom requires an SDL::Surface

Jetzt hab ich aber das Problem, dass $back 100%ig eine Surface ist :)
Wo liegt also der Fehler?
MFG jlorek

View full thread SDL::Tool::Graphic::zoom - Will nicht....