Mercurial > sdl-ios-xcode
comparison test/testalpha.c @ 1516:4d241ea8a1cd
Updated MacOS Classic build
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 13 Mar 2006 05:36:42 +0000 |
parents | 8dfa9a6d69a5 |
children | 14717b52abc0 |
comparison
equal
deleted
inserted
replaced
1515:1e18097b1d7a | 1516:4d241ea8a1cd |
---|---|
58 SDL_UnlockSurface(screen); | 58 SDL_UnlockSurface(screen); |
59 SDL_UpdateRect(screen, 0, 0, 0, 0); | 59 SDL_UpdateRect(screen, 0, 0, 0, 0); |
60 } | 60 } |
61 | 61 |
62 /* Create a "light" -- a yellowish surface with variable alpha */ | 62 /* Create a "light" -- a yellowish surface with variable alpha */ |
63 SDL_Surface *CreateLight(SDL_Surface *screen, int radius) | 63 SDL_Surface *CreateLight(int radius) |
64 { | 64 { |
65 Uint8 trans, alphamask; | 65 Uint8 trans, alphamask; |
66 int range, addition; | 66 int range, addition; |
67 int xdist, ydist; | 67 int xdist, ydist; |
68 Uint16 x, y; | 68 Uint16 x, y; |
399 quit(2); | 399 quit(2); |
400 } | 400 } |
401 FillBackground(screen); | 401 FillBackground(screen); |
402 | 402 |
403 /* Create the light */ | 403 /* Create the light */ |
404 light = CreateLight(screen, 82); | 404 light = CreateLight(82); |
405 if ( light == NULL ) { | 405 if ( light == NULL ) { |
406 quit(1); | 406 quit(1); |
407 } | 407 } |
408 | 408 |
409 /* Load the sprite */ | 409 /* Load the sprite */ |