git-svn-id: svn://db.shs.com.ru/pip@488 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -92,7 +92,6 @@ namespace PIScreenTypes {
|
|||||||
typedef PIFlags<CharFlag> CharFlags;
|
typedef PIFlags<CharFlag> CharFlags;
|
||||||
typedef PIFlags<FocusFlag> FocusFlags;
|
typedef PIFlags<FocusFlag> FocusFlags;
|
||||||
|
|
||||||
#pragma pack(push, 1)
|
|
||||||
union CellFormat {
|
union CellFormat {
|
||||||
CellFormat(uint f = 0) {raw_format = f;}
|
CellFormat(uint f = 0) {raw_format = f;}
|
||||||
CellFormat(Color col_char, Color col_back = Default, CharFlags flags_ = 0) {
|
CellFormat(Color col_char, Color col_back = Default, CharFlags flags_ = 0) {
|
||||||
@@ -125,7 +124,6 @@ namespace PIScreenTypes {
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
#pragma pack(pop)
|
|
||||||
|
|
||||||
struct TileEvent {
|
struct TileEvent {
|
||||||
TileEvent(int t = -1, const PIVariant & d = PIVariant()): type(t), data(d) {}
|
TileEvent(int t = -1, const PIVariant & d = PIVariant()): type(t), data(d) {}
|
||||||
@@ -145,12 +143,12 @@ namespace PIScreenTypes {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//inline PIByteArray & operator <<(PIByteArray & s, const PIScreenTypes::Cell & v) {s << v.symbol << v.format.raw_format; return s;}
|
inline PIByteArray & operator <<(PIByteArray & s, const PIScreenTypes::Cell & v) {s << v.format.raw_format << v.symbol; return s;}
|
||||||
|
|
||||||
//inline PIByteArray & operator >>(PIByteArray & s, PIScreenTypes::Cell & v) {s >> v.symbol >> v.format.raw_format; return s;}
|
inline PIByteArray & operator >>(PIByteArray & s, PIScreenTypes::Cell & v) {s >> v.format.raw_format >> v.symbol; return s;}
|
||||||
|
|
||||||
__PICONTAINERS_SIMPLE_TYPE__(PIScreenTypes::Cell)
|
//__PICONTAINERS_SIMPLE_TYPE__(PIScreenTypes::Cell)
|
||||||
__PIBYTEARRAY_SIMPLE_TYPE__(PIScreenTypes::Cell)
|
//__PIBYTEARRAY_SIMPLE_TYPE__(PIScreenTypes::Cell)
|
||||||
|
|
||||||
|
|
||||||
#endif // PISCREENTYPES_H
|
#endif // PISCREENTYPES_H
|
||||||
|
|||||||
@@ -181,8 +181,6 @@ PIInit::PIInit() {
|
|||||||
memset(__sysoemname__, 0, 256);
|
memset(__sysoemname__, 0, 256);
|
||||||
memcpy(__sysoemname__, "ibm-", 4);
|
memcpy(__sysoemname__, "ibm-", 4);
|
||||||
memcpy(&(__sysoemname__[4]), cpinfo.CodePageName, l);
|
memcpy(&(__sysoemname__[4]), cpinfo.CodePageName, l);
|
||||||
uint ccp = GetConsoleCP();
|
|
||||||
printf("%i\n", ccp);
|
|
||||||
# else
|
# else
|
||||||
/*PIString en(getenv("LANG"));
|
/*PIString en(getenv("LANG"));
|
||||||
if (!en.isEmpty())
|
if (!en.isEmpty())
|
||||||
|
|||||||
Reference in New Issue
Block a user