diff options
-rw-r--r-- | astro/stellarium/Makefile | 1 | ||||
-rw-r--r-- | astro/stellarium/files/patch-src_stel_sdl.cpp | 23 |
2 files changed, 24 insertions, 0 deletions
diff --git a/astro/stellarium/Makefile b/astro/stellarium/Makefile index c96f03e55199..a3ca6d2bd6a6 100644 --- a/astro/stellarium/Makefile +++ b/astro/stellarium/Makefile @@ -7,6 +7,7 @@ PORTNAME= stellarium PORTVERSION= 0.6.0 +PORTREVISION= 1 CATEGORIES= astro MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} diff --git a/astro/stellarium/files/patch-src_stel_sdl.cpp b/astro/stellarium/files/patch-src_stel_sdl.cpp new file mode 100644 index 000000000000..f31053849c37 --- /dev/null +++ b/astro/stellarium/files/patch-src_stel_sdl.cpp @@ -0,0 +1,23 @@ +--- src/stel_sdl.cpp.orig Thu Jun 17 14:11:01 2004 ++++ src/stel_sdl.cpp Thu Jun 17 14:16:40 2004 +@@ -60,9 +60,18 @@ + Screen = SDL_SetVideoMode(core->get_screen_W(), core->get_screen_H(), core->get_bppMode(), Vflags); + if(!Screen) + { +- printf("sdl: Couldn't set %dx%d video mode: %s!", ++ printf("sdl: Couldn't set %dx%d video mode (%s), retrying with stencil size 0\n", + core->get_screen_W(), core->get_screen_H(), SDL_GetError()); +- exit(-1); ++ ++ SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE,0); ++ Screen = SDL_SetVideoMode(core->get_screen_W(), core->get_screen_H(), core->get_bppMode(), Vflags); ++ ++ if(!Screen) ++ { ++ printf("sdl: Couldn't set %dx%d video mode: %s!\n", ++ core->get_screen_W(), core->get_screen_H(), SDL_GetError()); ++ exit(-1); ++ } + } + + // Disable key repeat |