1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-30 15:39:54 +00:00

fixes for Pandora

This commit is contained in:
Zeno Rogue 2017-03-25 02:10:15 +01:00
parent 9240cc48b3
commit 51f2ff9d4a
3 changed files with 14 additions and 1 deletions

View File

@ -7882,9 +7882,14 @@ void initgraph() {
#ifdef ANDROID #ifdef ANDROID
vid.monmode = 2; vid.monmode = 2;
vid.wallmode = 3; vid.wallmode = 3;
#else
#ifdef PANDORA
vid.monmode = 2;
vid.wallmode = 3;
#else #else
vid.monmode = 4; vid.monmode = 4;
vid.wallmode = 5; vid.wallmode = 5;
#endif
#endif #endif
vid.particles = 1; vid.particles = 1;

View File

@ -1793,7 +1793,7 @@ namespace svg {
void fixgamma(unsigned int& color) { void fixgamma(unsigned int& color) {
unsigned char *c = (unsigned char*) (&color); unsigned char *c = (unsigned char*) (&color);
for(int i=1; i<4; i++) c[i] = 255 * pow(c[i] / 255.0, gamma); for(int i=1; i<4; i++) c[i] = 255 * pow(float(c[i] / 255.0), float(gamma));
} }
int svgsize; int svgsize;

View File

@ -4,6 +4,14 @@
// basic utility functions // basic utility functions
#ifdef MOBWEB #ifdef MOBWEB
#define MWP
#endif
#ifdef PANDORA
#define MWP
#endif
#ifdef MWP
typedef double ld; typedef double ld;
#define LDF "%lf" #define LDF "%lf"
#define PLDF "lf" #define PLDF "lf"