mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-10 18:29:44 +00:00
don't call SetWindowGammaRamp without sdl_window
This commit is contained in:
parent
ba111a5cb7
commit
639f05da7e
@ -1787,7 +1787,7 @@ void SDL_monitor_desc::set_palette(uint8 *pal, int num_in)
|
||||
memcmp(green, last_gamma_green, 512) != 0 ||
|
||||
memcmp(blue, last_gamma_blue, 512) != 0);
|
||||
|
||||
if (changed) {
|
||||
if (changed && sdl_window) {
|
||||
int result = SDL_SetWindowGammaRamp(sdl_window, red, green, blue);
|
||||
|
||||
if (result < 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user