git-svn-id: svn://db.shs.com.ru/pip@249 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
8
main.cpp
8
main.cpp
@@ -31,9 +31,9 @@ public:
|
||||
T dot(VC<N, T> a) {T res = T(); for (uint i=0; i<N; i++) res += v[i] * a.v[N - i - 1]; return res;}
|
||||
};
|
||||
|
||||
class TerminalTile: public PIScreenTile {
|
||||
class TileTerminal: public PIScreenTile {
|
||||
public:
|
||||
TerminalTile(PITerminal * t = 0): term(t) {
|
||||
TileTerminal(PITerminal * t = 0): term(t) {
|
||||
focus_flags = PIScreenTypes::CanHasFocus;
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ private:
|
||||
//piCout << "draw" << visible;
|
||||
if (!term) return;
|
||||
PIVector<PIVector<PIScreenTypes::Cell> > c = term->content();
|
||||
d->fillRect(x, y, x + width, y + height, c);
|
||||
d->fillRect(x_, y_, x_ + width_, y_ + height_, c);
|
||||
}
|
||||
bool keyEvent(PIKbdListener::KeyEvent key) {
|
||||
//piCout << "key";
|
||||
@@ -67,7 +67,7 @@ private:
|
||||
int main (int argc, char * argv[]) {
|
||||
PIScreen screen;
|
||||
PITerminal term;
|
||||
TerminalTile tt(&term);
|
||||
TileTerminal tt(&term);
|
||||
screen.rootTile()->addTile(&tt);
|
||||
tt.setFocus();
|
||||
screen.enableExitCapture();
|
||||
|
||||
Reference in New Issue
Block a user