diff options
author | Vitaly Novichkov <admin@wohlnet.ru> | 2017-12-09 23:35:37 +0300 |
---|---|---|
committer | Vitaly Novichkov <admin@wohlnet.ru> | 2017-12-09 23:35:37 +0300 |
commit | ba588c3c54cda4aa0accb868f5a9825a0361fcf8 (patch) | |
tree | a5c2a2ca35ab3a9b5bfc6c49c328261e951c4c3b /utils/adlmidi-2/9x15.hpp | |
parent | 03ae1603df780d1f66862b7ea96c66a277452eb8 (diff) | |
parent | 58dd9b34bff3110392a05e952885057433b60559 (diff) | |
download | libADLMIDI-ba588c3c54cda4aa0accb868f5a9825a0361fcf8.tar.gz libADLMIDI-ba588c3c54cda4aa0accb868f5a9825a0361fcf8.tar.bz2 libADLMIDI-ba588c3c54cda4aa0accb868f5a9825a0361fcf8.zip |
Merge branch 'master' into openwatcom-debug
Diffstat (limited to 'utils/adlmidi-2/9x15.hpp')
-rw-r--r-- | utils/adlmidi-2/9x15.hpp | 6 |
1 files changed, 3 insertions, 3 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); } |