/***********************************************************
* Artsoft Retro-Game Library *
*----------------------------------------------------------*
-* (c) 1994-2000 Artsoft Entertainment *
+* (c) 1994-2001 Artsoft Entertainment *
* Holger Schemel *
* Detmolder Strasse 189 *
* 33604 Bielefeld *
inline void InitVideoDisplay(void)
{
-#ifdef TARGET_SDL
+#if defined(TARGET_SDL)
SDLInitVideoDisplay();
#else
X11InitVideoDisplay();
inline void CloseVideoDisplay(void)
{
-#if defined(TARGET_X11)
+ KeyboardAutoRepeatOn();
+
+#if defined(TARGET_SDL)
+ SDL_QuitSubSystem(SDL_INIT_VIDEO);
+#else
if (display)
XCloseDisplay(display);
#endif
#if defined(TARGET_SDL)
pixel = SDL_MapRGB(bitmap->surface->format, color_r, color_g, color_b);
+#elif defined(TARGET_ALLEGRO)
+ pixel = AllegroAllocColorCell(color_r << 8, color_g << 8, color_b << 8);
#elif defined(TARGET_X11_NATIVE)
XColor xcolor;