some bugfixes

This commit is contained in:
Andreas Rumpf
2009-05-14 01:46:41 +02:00
parent 233687adf7
commit 0e9d65e4ab
5 changed files with 34 additions and 19 deletions

View File

@@ -15,8 +15,8 @@ if SDL_Init(SDL_INIT_VIDEO) == 0:
greeting = SDL_LoadBmp("backgrnd.bmp")
if greeting == nil:
write(stdout, "greeting is nil!")
r.x = 0
r.y = 0
r.x = 0'i16
r.y = 0'i16
discard SDL_blitSurface(greeting, nil, screen, addr(r))
discard SDL_flip(screen)
SDL_Delay(3000)