Skip to content

Commit ce74355

Browse files
committed
For whatever reason (which escapes me now), I've added FreeBSD/VGL
keyboard deinit/reinit into the SDL timing code 12 years ago, so that if the SDL sound init fails, we are left with the non-working VGL keyboard. Remove that code for good now.
1 parent 66d8e91 commit ce74355

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

sdl_snd.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@ bool setsounddevice(int base, int irq, int dma, uint16_t samprate, uint16_t bufs
4949
wanted.userdata = sud;
5050
wanted.callback = fill_audio;
5151

52-
#ifdef _VGL
53-
restorekeyb();
54-
#endif
55-
5652
if ((SDL_Init(SDL_INIT_AUDIO)) >= 0)
5753
if ((SDL_OpenAudio(&wanted, &sud->obtained)) >= 0)
5854
result = true;
@@ -73,10 +69,6 @@ bool setsounddevice(int base, int irq, int dma, uint16_t samprate, uint16_t bufs
7369
sud->hp_fltr = bqd_hp_init(sud->obtained.freq, 1000);
7470
wave_device_available = true;
7571

76-
#ifdef _VGL
77-
initkeyb();
78-
#endif
79-
8072
return(result);
8173
}
8274

0 commit comments

Comments
 (0)