mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-25 02:33:09 +00:00
fix sdl error message output
This commit is contained in:
parent
d1fcff0a08
commit
b4b652d696
@ -1388,7 +1388,7 @@ void SDL_monitor_desc::set_palette(uint8 *pal, int num_in)
|
|||||||
int result = SDL_SetGammaRamp(red, green, blue);
|
int result = SDL_SetGammaRamp(red, green, blue);
|
||||||
|
|
||||||
if (result < 0) {
|
if (result < 0) {
|
||||||
printf("SDL_SetGammaRamp returned %d, SDL error:", result, SDL_GetError());
|
printf("SDL_SetGammaRamp returned %d, SDL error: %s\n", result, SDL_GetError());
|
||||||
}
|
}
|
||||||
|
|
||||||
memcpy(last_gamma_red, red, 512);
|
memcpy(last_gamma_red, red, 512);
|
||||||
|
@ -1765,7 +1765,7 @@ void SDL_monitor_desc::set_palette(uint8 *pal, int num_in)
|
|||||||
int result = SDL_SetWindowGammaRamp(sdl_window, red, green, blue);
|
int result = SDL_SetWindowGammaRamp(sdl_window, red, green, blue);
|
||||||
|
|
||||||
if (result < 0) {
|
if (result < 0) {
|
||||||
printf("SDL_SetWindowGammaRamp returned %d, SDL error:", result, SDL_GetError());
|
printf("SDL_SetWindowGammaRamp returned %d, SDL error: %s\n", result, SDL_GetError());
|
||||||
}
|
}
|
||||||
|
|
||||||
memcpy(last_gamma_red, red, 512);
|
memcpy(last_gamma_red, red, 512);
|
||||||
|
Loading…
Reference in New Issue
Block a user