fix: address review issues from MICRO_PIP migration
- piconditionvar.h: remove phantom wait(lk, timeout) stubs not in real class - pithread.h: remove duplicate #ifndef PIP_NO_THREADS guard - piscreendrawer/tile/tiles.cpp: remove duplicate #if !defined(PICO_SDK) - cmake/FindPIP.cmake: replace PIP_MICRO with PIP_EMBEDDED
This commit is contained in:
@@ -21,77 +21,75 @@
|
||||
|
||||
#if !defined(PICO_SDK)
|
||||
|
||||
#if !defined(PICO_SDK)
|
||||
|
||||
// comment for use ascii instead of unicode symbols
|
||||
#define USE_UNICODE
|
||||
# define USE_UNICODE
|
||||
|
||||
using namespace PIScreenTypes;
|
||||
|
||||
|
||||
PIScreenDrawer::PIScreenDrawer(PIVector<PIVector<Cell>> & c): cells(c) {
|
||||
arts_[LineVertical] =
|
||||
#ifdef USE_UNICODE
|
||||
# ifdef USE_UNICODE
|
||||
PIChar::fromUTF8("│");
|
||||
#else
|
||||
# else
|
||||
PIChar('|');
|
||||
#endif
|
||||
# endif
|
||||
|
||||
arts_[LineHorizontal] =
|
||||
#ifdef USE_UNICODE
|
||||
# ifdef USE_UNICODE
|
||||
PIChar::fromUTF8("─");
|
||||
#else
|
||||
# else
|
||||
PIChar('-');
|
||||
#endif
|
||||
# endif
|
||||
|
||||
arts_[Cross] =
|
||||
#ifdef USE_UNICODE
|
||||
# ifdef USE_UNICODE
|
||||
PIChar::fromUTF8("┼");
|
||||
#else
|
||||
# else
|
||||
PIChar('+');
|
||||
#endif
|
||||
# endif
|
||||
|
||||
arts_[CornerTopLeft] =
|
||||
#ifdef USE_UNICODE
|
||||
# ifdef USE_UNICODE
|
||||
PIChar::fromUTF8("┌");
|
||||
#else
|
||||
# else
|
||||
PIChar('+');
|
||||
#endif
|
||||
# endif
|
||||
|
||||
arts_[CornerTopRight] =
|
||||
#ifdef USE_UNICODE
|
||||
# ifdef USE_UNICODE
|
||||
PIChar::fromUTF8("┐");
|
||||
#else
|
||||
# else
|
||||
PIChar('+');
|
||||
#endif
|
||||
# endif
|
||||
|
||||
arts_[CornerBottomLeft] =
|
||||
#ifdef USE_UNICODE
|
||||
# ifdef USE_UNICODE
|
||||
PIChar::fromUTF8("└");
|
||||
#else
|
||||
# else
|
||||
PIChar('+');
|
||||
#endif
|
||||
# endif
|
||||
|
||||
arts_[CornerBottomRight] =
|
||||
#ifdef USE_UNICODE
|
||||
# ifdef USE_UNICODE
|
||||
PIChar::fromUTF8("┘");
|
||||
#else
|
||||
# else
|
||||
PIChar('+');
|
||||
#endif
|
||||
# endif
|
||||
|
||||
arts_[Unchecked] =
|
||||
#ifdef USE_UNICODE
|
||||
# ifdef USE_UNICODE
|
||||
PIChar::fromUTF8("☐");
|
||||
#else
|
||||
# else
|
||||
PIChar('O');
|
||||
#endif
|
||||
# endif
|
||||
|
||||
arts_[Checked] =
|
||||
#ifdef USE_UNICODE
|
||||
# ifdef USE_UNICODE
|
||||
PIChar::fromUTF8("☑");
|
||||
#else
|
||||
# else
|
||||
PIChar('0');
|
||||
#endif
|
||||
# endif
|
||||
}
|
||||
|
||||
|
||||
@@ -270,5 +268,3 @@ void PIScreenDrawer::drawText(int x, int y, const PIString & s, Color col_char,
|
||||
}
|
||||
|
||||
#endif // !PICO_SDK
|
||||
|
||||
#endif // !PICO_SDK
|
||||
|
||||
Reference in New Issue
Block a user