jpernst / uhexen2-sdl2 Goto Github PK
View Code? Open in Web Editor NEWUpdate uHexen2 to use SDL 2.0
License: GNU General Public License v2.0
Update uHexen2 to use SDL 2.0
License: GNU General Public License v2.0
This SDL2 version seems to work. Will try and integrate in mainstream later.
Here is a tiny patch to fix SDL-1.2 builds:
diff -u b/engine/h2shared/gl_vidsdl.c b/engine/h2shared/gl_vidsdl.c
--- b/engine/h2shared/gl_vidsdl.c
+++ b/engine/h2shared/gl_vidsdl.c
@@ -565,7 +565,7 @@
is_fullscreen = (screen->flags & SDL_FULLSCREEN) ? 1 : 0;
- SDL_WM_SetCaption(WM_TITLEBAR_TEXT, WM_INTF_TEXT);
+ SDL_WM_SetCaption(WM_TITLEBAR_TEXT, WM_ICON_TEXT);
#endif
// set vid_modenum properly and adjust other vars
@@ -1356,8 +1356,13 @@
{
int temp;
+#if SDLQUAKE < 2
+ if (!screen)
+ return;
+#else
if (!window)
return;
+#endif
temp = scr_disabled_for_loading;
scr_disabled_for_loading = true;
@@ -1720,8 +1725,10 @@
static char fxmesa_env_multitex[32] = "FX_DONT_FAKE_MULTITEX=1";
static char fxglide_env_nosplash[32] = "FX_GLIDE_NO_SPLASH=1";
#endif
- int i, temp, width, height;
+#if SDLQUAKE < 2
const SDL_version *sdl_version;
+#endif
+ int i, temp, width, height;
const char *read_vars[] = {
"vid_config_fscr",
"vid_config_gl8bit",
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.