mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-10 18:29:44 +00:00
put error message on stderr
This commit is contained in:
parent
639f05da7e
commit
e5c4699923
@ -1403,7 +1403,7 @@ void SDL_monitor_desc::set_palette(uint8 *pal, int num_in)
|
||||
int result = SDL_SetGammaRamp(red, green, blue);
|
||||
|
||||
if (result < 0) {
|
||||
printf("SDL_SetGammaRamp returned %d, SDL error: %s\n", result, SDL_GetError());
|
||||
fprintf(stderr, "SDL_SetGammaRamp returned %d, SDL error: %s\n", result, SDL_GetError());
|
||||
}
|
||||
|
||||
memcpy(last_gamma_red, red, 512);
|
||||
|
@ -1791,7 +1791,7 @@ void SDL_monitor_desc::set_palette(uint8 *pal, int num_in)
|
||||
int result = SDL_SetWindowGammaRamp(sdl_window, red, green, blue);
|
||||
|
||||
if (result < 0) {
|
||||
printf("SDL_SetWindowGammaRamp returned %d, SDL error: %s\n", result, SDL_GetError());
|
||||
fprintf(stderr, "SDL_SetWindowGammaRamp returned %d, SDL error: %s\n", result, SDL_GetError());
|
||||
}
|
||||
|
||||
memcpy(last_gamma_red, red, 512);
|
||||
|
Loading…
x
Reference in New Issue
Block a user