((unsigned)(keysym) >= 0xFF00)
-static bool gamma_table_ready = FALSE;
+static bool gamma_table_ready = true;
static int gamma_val = 0;
concptr str = getenv("ANGBAND_X11_GAMMA");
if (str != NULL) gamma_val = atoi(str);
- gamma_table_ready = TRUE;
+ gamma_table_ready = true;
/* Only need to build the table if gamma exists */
if (gamma_val) build_gamma_table(gamma_val);
return (NULL);
}
- for (y = 0; y < infoheader.biHeight; y++)
+ for (y = 0; y < static_cast<int>(infoheader.biHeight); y++)
{
int y2 = infoheader.biHeight - y - 1;
- for (x = 0; x < infoheader.biWidth; x++)
+ for (x = 0; x < static_cast<int>(infoheader.biWidth); x++)
{
int ch = getc(f);
/*
* Use smooth rescaling?
*/
-static bool smoothRescaling = TRUE;
+static bool smoothRescaling = true;
/*
si = x;
sifrac = 0;
/* getNextPix tells us, that we need the next pixel */
- getNextPix = TRUE;
+ getNextPix = true;
for (xi = 0; xi <= ow; xi++)
{
{
si++;
sifrac -= ow;
- getNextPix = TRUE;
+ getNextPix = true;
}
else
{
- getNextPix = FALSE;
+ getNextPix = true;
}
}
si = y1;
sifrac = 0;
/* getNextRow tells us, that we need the next row */
- getNextRow = TRUE;
+ getNextRow = true;
for (yi = 0; yi <= oy; yi++)
{
if (getNextRow)
{
si++;
sifrac -= oy;
- getNextRow = TRUE;
+ getNextRow = true;
}
else
{
- getNextRow = FALSE;
+ getNextRow = true;
}
}