fix sdl error message output

This commit is contained in:
rakslice 2020-08-18 04:13:50 -07:00
parent d1fcff0a08
commit b4b652d696
2 changed files with 2 additions and 2 deletions

View File

@ -1388,7 +1388,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:", result, SDL_GetError());
printf("SDL_SetGammaRamp returned %d, SDL error: %s\n", result, SDL_GetError());
}
memcpy(last_gamma_red, red, 512);

View File

@ -1765,7 +1765,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:", result, SDL_GetError());
printf("SDL_SetWindowGammaRamp returned %d, SDL error: %s\n", result, SDL_GetError());
}
memcpy(last_gamma_red, red, 512);