From: Holger Schemel Date: Thu, 3 Sep 2020 22:43:08 +0000 (+0200) Subject: improved displaying video and audio driver on info screen page X-Git-Tag: 4.2.0.2~16 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=1a2124a8a6d3ed2c7d2e81571cfa9c7b88ff1f0a;p=rocksndiamonds.git improved displaying video and audio driver on info screen page --- diff --git a/src/screens.c b/src/screens.c index 91128464..15952e7e 100644 --- a/src/screens.c +++ b/src/screens.c @@ -3764,16 +3764,18 @@ static void DrawInfoScreen_Version(void) DrawTextF(xstart3, ystart, font_head, "Used"); ystart += ystep_head; - driver_name = getStringCopyNStatic(SDL_GetVideoDriver(0), driver_name_len); + driver_name = + getStringCopyNStatic(SDL_GetCurrentVideoDriver(), driver_name_len); - DrawTextF(xstart1, ystart, font_text, "SDL_VideoDriver"); + DrawTextF(xstart1, ystart, font_text, "Video Driver"); DrawTextF(xstart2, ystart, font_text, "%s", setup.system.sdl_videodriver); DrawTextF(xstart3, ystart, font_text, "%s", driver_name); ystart += ystep_line; - driver_name = getStringCopyNStatic(SDL_GetAudioDriver(0), driver_name_len); + driver_name = + getStringCopyNStatic(SDL_GetCurrentAudioDriver(), driver_name_len); - DrawTextF(xstart1, ystart, font_text, "SDL_AudioDriver"); + DrawTextF(xstart1, ystart, font_text, "Audio Driver"); DrawTextF(xstart2, ystart, font_text, "%s", setup.system.sdl_audiodriver); DrawTextF(xstart3, ystart, font_text, "%s", driver_name);