diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-03-25 08:51:38 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-03-25 08:51:38 -0700 |
commit | 3d4bee26b5ce8fd8157224de97c9f2292abcdf5f (patch) | |
tree | fd0311a6a6d9e0af3edf2e33dbdabffc8ed8ab9f /tests/sdl_canvas.c | |
parent | 93afa269f3fc18b40c0c86c920a1a0d565731dff (diff) |
fix sdl alpha
Diffstat (limited to 'tests/sdl_canvas.c')
-rw-r--r-- | tests/sdl_canvas.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/sdl_canvas.c b/tests/sdl_canvas.c index aaa9d653..6c6adc2d 100644 --- a/tests/sdl_canvas.c +++ b/tests/sdl_canvas.c @@ -12,11 +12,11 @@ int main() { TTF_Font *font = TTF_OpenFont("myfont.ttf", 40); printf("Font: %p\n", font); - SDL_Color color = { 0xff, 0x99, 0x00, 0xb0 }; + SDL_Color color = { 0xff, 0x99, 0x00, 0x4f }; SDL_Surface *text = TTF_RenderText_Solid(font, "hello faint orange world", color); - SDL_Color color2 = { 0xbb, 0, 0xff, 0 }; + SDL_Color color2 = { 0xbb, 0, 0xff, 0xff }; SDL_Surface *text2 = TTF_RenderText_Solid(font, "a second line, purple", color2); // render @@ -27,7 +27,7 @@ int main() { // fill stuff SDL_Rect rect = { 200, 200, 175, 125 }; - SDL_FillRect(screen, &rect, 0x2222ff00); + SDL_FillRect(screen, &rect, 0x2222ffff); SDL_Flip(screen); |