X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Fgame%2Fsdl%2Fg_system.pas;h=4120c0271cc8f29f3ec32f284105990b41bad66e;hp=21501c6705baacbfc11a2711f7789163b9c9556e;hb=dbf81afaefeb52e53d2b8af3a782277229c5adaa;hpb=40aef8e7c0887d12cec058787540e83f0badf4dd diff --git a/src/game/sdl/g_system.pas b/src/game/sdl/g_system.pas index 21501c6..4120c02 100644 --- a/src/game/sdl/g_system.pas +++ b/src/game/sdl/g_system.pas @@ -40,8 +40,8 @@ interface implementation uses - SysUtils, SDL, GL, Math, - e_log, e_graphics, e_input, + SysUtils, SDL, Math, + e_log, e_graphics, e_input, e_sound, g_options, g_window, g_console, g_game, g_menu, g_gui, g_main; const @@ -429,6 +429,7 @@ implementation SDL_JOYAXISMOTION: HandleJoyAxis(ev.jaxis); SDL_JOYHATMOTION: HandleJoyHat(ev.jhat); SDL_VIDEOEXPOSE: sys_Repaint; + SDL_ACTIVEEVENT: e_MuteChannels((ev.active.gain = 0) and gMuteWhenInactive); end end end;