diff options
author | Pierre Ossman <ossman@cendio.se> | 2018-12-10 21:16:07 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2018-12-10 21:16:07 +0100 |
commit | d8bbbeb3b37c713a72a113f7ef78741e15cc4a4d (patch) | |
tree | 7d8076302c65cf6ffbd2ccbf9d581476412be36b /tests/encperf.cxx | |
parent | 139b96741004adc92032a93b8ef6e5927a618f6d (diff) | |
parent | c3826bb2fcb60efa495b54dd66296bc55ce28ecf (diff) | |
download | tigervnc-d8bbbeb3b37c713a72a113f7ef78741e15cc4a4d.tar.gz tigervnc-d8bbbeb3b37c713a72a113f7ef78741e15cc4a4d.zip |
Merge branch 'connparams' of https://github.com/CendioOssman/tigervnc
Diffstat (limited to 'tests/encperf.cxx')
-rw-r--r-- | tests/encperf.cxx | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/tests/encperf.cxx b/tests/encperf.cxx index 733d55b6..6523eb72 100644 --- a/tests/encperf.cxx +++ b/tests/encperf.cxx @@ -89,7 +89,7 @@ public: void getStats(double& ratio, unsigned long long& bytes, unsigned long long& rawEquivalent); - virtual void setDesktopSize(int w, int h); + virtual void initDone(); virtual void setCursor(int, int, const rfb::Point&, const rdr::U8*); virtual void framebufferUpdateStart(); virtual void framebufferUpdateEnd(); @@ -180,7 +180,7 @@ CConn::CConn(const char *filename) setDesktopSize(width, height); sc = new SConn(); - sc->cp.setPF((bool)translate ? fbPF : pf); + sc->client.setPF((bool)translate ? fbPF : pf); sc->setEncodings(sizeof(encodings) / sizeof(*encodings), encodings); } @@ -196,14 +196,12 @@ void CConn::getStats(double& ratio, unsigned long long& bytes, sc->getStats(ratio, bytes, rawEquivalent); } -void CConn::setDesktopSize(int w, int h) +void CConn::initDone() { rfb::ModifiablePixelBuffer *pb; - CConnection::setDesktopSize(w, h); - - pb = new rfb::ManagedPixelBuffer((bool)translate ? fbPF : cp.pf(), - cp.width, cp.height); + pb = new rfb::ManagedPixelBuffer((bool)translate ? fbPF : server.pf(), + server.width(), server.height()); setFramebuffer(pb); } @@ -290,7 +288,7 @@ SConn::SConn() out = new DummyOutStream; setStreams(NULL, out); - setWriter(new rfb::SMsgWriter(&cp, out)); + setWriter(new rfb::SMsgWriter(&client, out)); manager = new Manager(this); } |