diff --git a/src/drivers/sdl/config.cpp b/src/drivers/sdl/config.cpp index db49dc3f..97742b83 100644 --- a/src/drivers/sdl/config.cpp +++ b/src/drivers/sdl/config.cpp @@ -155,6 +155,7 @@ InitConfig() config->addOption("yscale", "SDL.YScale", 1.0); config->addOption("xstretch", "SDL.XStretch", 0); config->addOption("ystretch", "SDL.YStretch", 0); + config->addOption("noframe", "SDL.NoFrame", 0); // OpenGL options config->addOption("opengl", "SDL.OpenGL", 0); diff --git a/src/drivers/sdl/sdl-video.cpp b/src/drivers/sdl/sdl-video.cpp index 4cd0b071..4dd96ba1 100644 --- a/src/drivers/sdl/sdl-video.cpp +++ b/src/drivers/sdl/sdl-video.cpp @@ -57,6 +57,7 @@ static double s_exs, s_eys; static int s_eefx; static int s_clipSides; static int s_fullscreen; +static int noframe; #define NWIDTH (256 - (s_clipSides ? 16 : 0)) #define NOFFSET (s_clipSides ? 8 : 0) @@ -136,6 +137,7 @@ InitVideo(FCEUGI *gi) g_config->getOption("SDL.XResolution", &xres); g_config->getOption("SDL.YResolution", &yres); g_config->getOption("SDL.ClipSides", &s_clipSides); + g_config->getOption("SDL.NoFrame", &noframe); // check the starting, ending, and total scan lines FCEUI_GetCurrentVidSystem(&s_srendline, &s_erendline); @@ -172,6 +174,10 @@ InitVideo(FCEUGI *gi) if(s_fullscreen) { flags |= SDL_FULLSCREEN; } + + if(noframe) { + flags |= SDL_NOFRAME; + } // gives the SDL exclusive palette control... ensures the requested colors flags |= SDL_HWPALETTE; @@ -280,7 +286,7 @@ InitVideo(FCEUGI *gi) return -1; } #endif - + s_screen = SDL_SetVideoMode((int)(NWIDTH * s_exs), (int)(s_tlines * s_eys), desbpp, flags); diff --git a/src/drivers/sdl/sdl.cpp b/src/drivers/sdl/sdl.cpp index 2644e4dd..2ce162e0 100644 --- a/src/drivers/sdl/sdl.cpp +++ b/src/drivers/sdl/sdl.cpp @@ -63,6 +63,7 @@ char *DriverUsage= --doublebuf x Enable SDL double-buffering if x is nonzero.\n\ --fullscreen x, -f x Select full screen mode if x is nonzero.\n\ --clipsides x Clip left- and rightmost 8 columns of pixels if x is nonzero.\n\ +--noframe x Hides title bar and window decorations.\n\ --slstart x Set the first drawn emulated scanline. Valid values for x are\n\ 0 through 239.\n\ --slend x Set the last drawn emulated scanline. Valid values for x are\n\