diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/sdl_canvas.c | 6 | ||||
-rw-r--r-- | tests/sdl_mouse.c | 2 |
2 files changed, 4 insertions, 4 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); diff --git a/tests/sdl_mouse.c b/tests/sdl_mouse.c index a0520839..dae3f636 100644 --- a/tests/sdl_mouse.c +++ b/tests/sdl_mouse.c @@ -44,7 +44,7 @@ int main() { SDL_Surface *screen = SDL_SetVideoMode(600, 450, 32, SDL_HWSURFACE); SDL_Rect rect = { 0, 0, 600, 450 }; - SDL_FillRect(screen, &rect, 0x2244ff00); + SDL_FillRect(screen, &rect, 0x2244ffff); emscripten_run_script("simulateMouseEvent(10, 20, -1)"); // move from 0,0 to 10,20 emscripten_run_script("simulateMouseEvent(10, 20, 0)"); // click |