Group :: Games/Other
RPM: nogravity
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: nogravity--fullscreen_as_option.patch
Download
Download
diff -ru nogravity.orig/src/lithium.c nogravity/src/lithium.c
--- src/lithium.c 2006-02-15 02:04:30.000000000 +0300
+++ src/lithium.c 2006-10-01 11:56:11.000000000 +0400
@@ -235,7 +235,10 @@
#if defined __BEOS__ || defined _DEBUG
RLX.Video.Config|=RLXVIDEO_Windowed;
#else
- RLX.Video.Config&=~RLXVIDEO_Windowed;
+ if (g_SGSettings.Fullscreen == 1)
+ RLX.Video.Config&=~RLXVIDEO_Windowed;
+ else
+ RLX.Video.Config|=RLXVIDEO_Windowed;
#endif
#ifdef _DEBUG
diff -ru nogravity.orig/src/lt_info.c nogravity/src/lt_info.c
--- src/lt_info.c 2006-04-15 16:11:43.000000000 +0400
+++ src/lt_info.c 2006-10-01 11:45:19.000000000 +0400
@@ -157,6 +157,7 @@
fprintf(in, "Zbuffer=%s\n", YesNo[g_SGSettings.ZBuffer]);
fprintf(in, "ResolutionX=%d\n", (int)g_SGSettings.ResolutionX);
fprintf(in, "ResolutionY=%d\n", (int)g_SGSettings.ResolutionY);
+ fprintf(in, "Fullscreen=%d\n", (int)g_SGSettings.Fullscreen);
fprintf(in, "ColorDepth=%d\n", g_SGSettings.ColorDepth);
fprintf(in, "FrameSkip=%d\n", g_SGSettings.FrameSkip);
fprintf(in, "Multisampling=%d\n", g_SGSettings.Multisampling);
@@ -229,6 +230,7 @@
g_SGSettings.ColorDepth = (u_int8_t)GetCF_long("ColorDepth", &iniFile);
g_SGSettings.Dithering = (u_int8_t)GetCF_bool("Dithering", &iniFile);
+ g_SGSettings.Fullscreen = (u_int8_t)GetCF_bool("Fullscreen", &iniFile);
g_SGSettings.TexFiltering = (u_int8_t)GetCF_bool("TexFiltering", &iniFile);
g_SGSettings.TexPOT = (u_int8_t)GetCF_bool("TexPOT", &iniFile);
g_SGSettings.VisualsFx = (u_int8_t)GetCF_long("VisualsFx", &iniFile);
@@ -323,6 +325,7 @@
g_SGSettings.Sky = 1;
g_SGSettings.Dithering = 1;
g_SGSettings.LensFX = 1;
+ g_SGSettings.Fullscreen = 1;
g_SGSettings.ResolutionX = 640;
g_SGSettings.ResolutionY = 480;
g_SGSettings.ColorDepth = 32;
diff -ru nogravity.orig/src/_nginfo.h nogravity/src/_nginfo.h
--- src/_nginfo.h 2006-02-15 02:04:30.000000000 +0300
+++ src/_nginfo.h 2006-10-01 11:40:12.000000000 +0400
@@ -42,6 +42,7 @@
int ResolutionX, ResolutionY, ColorDepth;
int ComNumber, ComTime, ComFTime;
u_int8_t VolDIG, VolFX, VolMusic;
+ u_int8_t Fullscreen;
u_int8_t VisualsFx;
u_int8_t Interlaced;
u_int8_t ZBuffer;