diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2019-03-16 20:37:42 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2019-03-16 20:37:42 +0100 |
commit | f4e7ec209ec70f855999668e58c23b20227da84d (patch) | |
tree | f7e53554aa25015bda05d6d5e6b1b46f3f03b646 /example/test.cpp | |
parent | 4ed209d756c3cf719d8255c698d7988e85aa746a (diff) | |
download | termgl-f4e7ec209ec70f855999668e58c23b20227da84d.tar.gz |
Fixed examples #4
Diffstat (limited to 'example/test.cpp')
-rw-r--r-- | example/test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/test.cpp b/example/test.cpp index afef931..4d9af96 100644 --- a/example/test.cpp +++ b/example/test.cpp @@ -6,7 +6,7 @@ class ball : public cObject { public: - ball() : v({1,1}) { setSize(1,1); drawPoint('O', {0,0}, true, _COL_RED); } + ball() : v({1,1}) { setSize(1,1); drawPoint('O', {0,0}, _COL_RED); } ~ball() { destruct(); } virtual bool onCollisionActive(sPos _hit, int _passiveObject) { @@ -26,7 +26,7 @@ private: class edge : public cObject { public: - edge(unsigned int x, unsigned int y) { setSize(x,y); drawLine('#', {0,0},{(int)x-1,(int)y-1}, true, _COL_DEFAULT);} + edge(unsigned int x, unsigned int y) { setSize(x,y); drawLine('#', {0,0},{(int)x-1,(int)y-1}, _COL_DEFAULT);} ~edge() { destruct(); } virtual int onCollisionPassive(sPos _hit) { |