Skip to content

Instantly share code, notes, and snippets.

@nvsofts
Created November 17, 2016 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nvsofts/d4629af107791f9d6cc855037a001b6e to your computer and use it in GitHub Desktop.
Save nvsofts/d4629af107791f9d6cc855037a001b6e to your computer and use it in GitHub Desktop.

パッチについて

sdl-fbvideo.patch: SDLに当てる、キーボード入力を殺すパッチ

lsdldoom-video.patch: lsdldoomに当てる、色深度の判定を強制的に32bitにするパッチ

--- src/l_video_sdl.c.old 2011-09-22 17:14:31.000000000 +0900
+++ src/l_video_sdl.c 2016-11-18 00:27:12.000000000 +0900
@@ -458,11 +458,15 @@
if ( M_CheckParm("-fullscreen") ) {
init_flags |= SDL_FULLSCREEN;
}
+#if 0
if(SDL_VideoModeOK(w, h, 8, init_flags) == 8) {
screen = SDL_SetVideoMode(w, h, 8, init_flags);
} else {
screen = SDL_SetVideoMode(w, h, 0, init_flags);
}
+#endif
+ screen = SDL_SetVideoMode(w, h, 32, init_flags);
+
if(screen == NULL || !I_QueryImageTranslation()) {
I_Error("Couldn't set %dx%d video mode [%s]", w, h, SDL_GetError());
}
--- src/video/fbcon/SDL_fbvideo.c.old 2012-01-19 15:30:06.000000000 +0900
+++ src/video/fbcon/SDL_fbvideo.c 2016-11-18 01:37:06.000000000 +0900
@@ -1008,9 +1008,11 @@
int surfaces_len;
/* Set the terminal into graphics mode */
+#if 0
if ( FB_EnterGraphicsMode(this) < 0 ) {
return(NULL);
}
+#endif
/* Restore the original palette */
FB_RestorePalette(this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment