From b16b4963c1ad81bb9ef784bc4913a4c8ab5f1bb4 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Tue, 12 Sep 2017 14:45:10 -0400 Subject: [PATCH] remove gamma name hack --- src/engine/main.cpp | 6 +++--- src/shared/cube.h | 8 -------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/src/engine/main.cpp b/src/engine/main.cpp index 1032004d..77c9233a 100644 --- a/src/engine/main.cpp +++ b/src/engine/main.cpp @@ -278,10 +278,10 @@ static void setgamma(int val) } static int curgamma = 100; -VARF(IDF_PERSIST, gamma, 30, 100, 300, +VARFN(IDF_PERSIST, gamma, reqgamma, 30, 100, 300, { - if(initing || gamma == curgamma) return; - curgamma = gamma; + if(initing || reqgamma == curgamma) return; + curgamma = reqgamma; setgamma(curgamma); }); diff --git a/src/shared/cube.h b/src/shared/cube.h index 3864c492..7ff5e267 100644 --- a/src/shared/cube.h +++ b/src/shared/cube.h @@ -3,19 +3,11 @@ #define _FILE_OFFSET_BITS 64 -#ifdef __GNUC__ -#define gamma __gamma -#endif - #ifdef WIN32 #define _USE_MATH_DEFINES #endif #include -#ifdef __GNUC__ -#undef gamma -#endif - #include #include #include ee/gnu/packages/gps.scm?id=24f57dadc7a38653064eb9a9cd4020abf6c2e033'>treecommitdiff
AgeCommit message (Expand)Author
2022-06-20gnu: gpxsee: Update to 11.1....Nikolay Korotkiy
2022-04-29gnu: gama: Update to 2.19....Efraim Flashner
2022-04-13gnu: gama: Update to 2.18....Efraim Flashner
2022-02-08gnu: gpxsee: Update to 10.3....Nikolay Korotkiy via Guix-patches via
2022-01-20gnu: gama: Update to 2.17....Efraim Flashner
2021-12-13gnu: Simplify package inputs....Ludovic Courtès
2021-12-10Merge remote-tracking branch 'signed/master' into core-updatesMathieu Othacehe
2021-12-10gnu: gpxsee: Update to 10.0....Nikolay Korotkiy
2021-10-12Merge remote-tracking branch 'origin/master' into core-updates-frozen.Mathieu Othacehe
2021-10-04gnu: gpsd: Update to 3.23.1....Tobias Geerinckx-Rice
2021-09-25gnu: Consolidate duplicate copyright names....Greg Hogan
2021-09-22gnu: gama: Update to 2.15....Efraim Flashner
2021-08-12Merge branch 'master' into core-updates-frozen...Marius Bakke
2021-07-27gnu: GPSD: Update to 3.23....Leo Famulari
2021-06-19Merge branch 'master' into core-updates...Marius Bakke
2021-06-14gnu: Rename qtbase to qtbase-5....Maxim Cournoyer