aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils/adlmidi-2/9x15.hpp6
-rw-r--r--utils/adlmidi-2/input.cc4
-rw-r--r--utils/adlmidi-2/input.hpp2
-rw-r--r--utils/adlmidi-2/puzzlegame.cc2
4 files changed, 7 insertions, 7 deletions
diff --git a/utils/adlmidi-2/9x15.hpp b/utils/adlmidi-2/9x15.hpp
index 0461a6f..9812951 100644
--- a/utils/adlmidi-2/9x15.hpp
+++ b/utils/adlmidi-2/9x15.hpp
@@ -131,17 +131,17 @@ static const unsigned char bitmap[3840] = {
};
static const struct unicode_to_bitmap_index_generator
{
- static uint_least8_t Help(uint_least8_t index, bool InRecursion)
+ static uint_least8_t Help(uint8_t index, bool InRecursion)
{
return InRecursion ? (index & 0xFF) : Find(UnicodeToASCIIapproximation(index)&0xFF,
true);
}
- static uint_least8_t Find(uint_least8_t index, bool InRecursion)
+ static uint_least8_t Find(uint8_t index, bool InRecursion)
{
return
(index < 160)
? ((index < 127) ? index - 0 : Help(index,InRecursion))
- : ((index < 256) ? index - 33 : Help(index,InRecursion))
+ : /*((index < 256) ?*/ index - 33 /*: Help(index,InRecursion))*/
;
}
uint_least8_t operator[] (uint_least8_t index) const { return Find(index, false); }
diff --git a/utils/adlmidi-2/input.cc b/utils/adlmidi-2/input.cc
index 9d69469..bb276cb 100644
--- a/utils/adlmidi-2/input.cc
+++ b/utils/adlmidi-2/input.cc
@@ -5,7 +5,7 @@ xInput::xInput()
#ifdef _WIN32
inhandle = GetStdHandle(STD_INPUT_HANDLE);
#endif
-#if (!defined(_WIN32) || defined(__CYGWIN__)) && !defined(__DJGPP__)
+#if (!defined(_WIN32) || defined(__CYGWIN__)) && !defined(__DJGPP__) && !defined(__APPLE__)
ioctl(0, TCGETA, &back);
struct termio term = back;
term.c_lflag &= ~(ICANON | ECHO);
@@ -17,7 +17,7 @@ xInput::xInput()
xInput::~xInput()
{
-#if (!defined(_WIN32) || defined(__CYGWIN__)) && !defined(__DJGPP__)
+#if (!defined(_WIN32) || defined(__CYGWIN__)) && !defined(__DJGPP__) && !defined(__APPLE__)
if(ioctl(0, TCSETA, &back) < 0)
fcntl(0, F_SETFL, fcntl(0, F_GETFL) & ~ O_NONBLOCK);
#endif
diff --git a/utils/adlmidi-2/input.hpp b/utils/adlmidi-2/input.hpp
index 59f7f8c..0cafd51 100644
--- a/utils/adlmidi-2/input.hpp
+++ b/utils/adlmidi-2/input.hpp
@@ -34,7 +34,7 @@ class xInput
#ifdef _WIN32
void *inhandle;
#endif
- #if (!defined(_WIN32) || defined(__CYGWIN__)) && !defined(__DJGPP__)
+ #if (!defined(_WIN32) || defined(__CYGWIN__)) && !defined(__DJGPP__) && !defined(__APPLE__)
struct termio back;
#endif
public:
diff --git a/utils/adlmidi-2/puzzlegame.cc b/utils/adlmidi-2/puzzlegame.cc
index 64c032a..07ceb94 100644
--- a/utils/adlmidi-2/puzzlegame.cc
+++ b/utils/adlmidi-2/puzzlegame.cc
@@ -92,7 +92,7 @@ bool ADLMIDI_PuzzleGame::TetrisArea::CascadeEmpty(int FirstY)
"QUINTUPLE "
" SEXTUPLE "
" SEPTUPLE "
- " OCTUPLE " + (n_full - 1) * 10;
+ " OCTUPLE " + ((n_full - 1) * 10);
for(int y = FirstY; y < Height - 1; ++y)
if(list_full & (1u << y))
DrawBlock(animx, y, label[(animx % 10)] + 0x100);