+2007-03-07
+ * added option "system.sdl_videodriver" to select SDL video driver
+ * added output of SDL video and audio driver to "version info" page
+
+2007-03-06
+ * added group element drawing to IntelliDraw drawing functions
+ * fixed animation resetting problem again (last try broke Snake Bite)
+ * fixed diagonal scrolling in screen scrolling (last try broke Pac Man)
+
2007-03-01
* added new (special) "include: <filename>" directive that works in all
configuration files (like "graphicsinfo.conf") and that has the same
#define NUM_PLAYER_SETUP_TOKENS 16
/* system setup */
-#define SETUP_TOKEN_SYSTEM_SDL_AUDIODRIVER 0
-#define SETUP_TOKEN_SYSTEM_AUDIO_FRAGMENT_SIZE 1
+#define SETUP_TOKEN_SYSTEM_SDL_VIDEODRIVER 0
+#define SETUP_TOKEN_SYSTEM_SDL_AUDIODRIVER 1
+#define SETUP_TOKEN_SYSTEM_AUDIO_FRAGMENT_SIZE 2
-#define NUM_SYSTEM_SETUP_TOKENS 2
+#define NUM_SYSTEM_SETUP_TOKENS 3
/* options setup */
#define SETUP_TOKEN_OPTIONS_VERBOSE 0
static struct TokenInfo system_setup_tokens[] =
{
+ { TYPE_STRING, &syi.sdl_videodriver, "system.sdl_videodriver" },
{ TYPE_STRING, &syi.sdl_audiodriver, "system.sdl_audiodriver" },
{ TYPE_INTEGER, &syi.audio_fragment_size,"system.audio_fragment_size" },
};
si->input[i].key.drop = (i == 0 ? DEFAULT_KEY_DROP : KSYM_UNDEFINED);
}
+ si->system.sdl_videodriver = getStringCopy(ARG_DEFAULT);
si->system.sdl_audiodriver = getStringCopy(ARG_DEFAULT);
si->system.audio_fragment_size = DEFAULT_AUDIO_FRAGMENT_SIZE;
int ystart2 = mSY - SY + 150;
int ybottom = mSY - SY + SYSIZE - 20;
int xstart1 = mSX + 2 * xstep;
- int xstart2 = mSX + 18 * xstep;
+ int xstart2 = mSX + 19 * xstep;
#if defined(TARGET_SDL)
- int xstart3 = mSX + 28 * xstep;
+ int xstart3 = mSX + 29 * xstep;
SDL_version sdl_version_compiled;
const SDL_version *sdl_version_linked;
+ int driver_name_len = 8;
+ char driver_name[driver_name_len];
#endif
SetMainBackgroundImageIfDefined(IMG_BACKGROUND_INFO_VERSION);
sdl_version_linked->major,
sdl_version_linked->minor,
sdl_version_linked->patch);
+
+ ystart2 += 3 * ystep;
+ DrawTextF(xstart1, ystart2, font_header, "Driver");
+ DrawTextF(xstart2, ystart2, font_header, "Requested");
+ DrawTextF(xstart3, ystart2, font_header, "Active");
+
+ SDL_VideoDriverName(driver_name, driver_name_len);
+
+ ystart2 += 2 * ystep;
+ DrawTextF(xstart1, ystart2, font_text, "SDL_VideoDriver");
+ DrawTextF(xstart2, ystart2, font_text, "%s", setup.system.sdl_videodriver);
+ DrawTextF(xstart3, ystart2, font_text, "%s", driver_name);
+
+ SDL_AudioDriverName(driver_name, driver_name_len);
+
+ ystart2 += ystep;
+ DrawTextF(xstart1, ystart2, font_text, "SDL_AudioDriver");
+ DrawTextF(xstart2, ystart2, font_text, "%s", setup.system.sdl_audiodriver);
+ DrawTextF(xstart3, ystart2, font_text, "%s", driver_name);
#endif
DrawTextSCentered(ybottom, FONT_TEXT_4,