diff options
author | Gyuhwan Park★ <unstabler@unstabler.pl> | 2023-02-26 13:02:54 +0300 |
---|---|---|
committer | Gyuhwan Park★ <unstabler@unstabler.pl> | 2023-02-26 13:05:25 +0300 |
commit | fac80175cfd81bc9bf99beff92cc5f0eb0e34f77 (patch) | |
tree | 9f3464507a83f7363f8632e56cac0263b9e19e94 | |
parent | 21daea93650ccc215d1ebd3d1cb65449bd12fd9a (diff) |
-rw-r--r-- | XrdpUlalacaPrivate.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/XrdpUlalacaPrivate.cpp b/XrdpUlalacaPrivate.cpp index 3b0c26c..ec8213e 100644 --- a/XrdpUlalacaPrivate.cpp +++ b/XrdpUlalacaPrivate.cpp @@ -264,6 +264,12 @@ void XrdpUlalacaPrivate::updateThreadLoop() { ULIPCRect screenRect {0, 0, (short) width, (short) height}; auto copyRectSize = decideCopyRectSize(); +#ifdef XRDP_TUMOD_ENCODER_HINTS_AVAILABLE + int paintFlags = XRDP_ENCODER_HINT_QUALITY_LOW; +#else + int paintFlags = 0; +#endif + if (!_fullInvalidate) { auto copyRects = createCopyRects(*dirtyRects, copyRectSize); @@ -273,7 +279,7 @@ void XrdpUlalacaPrivate::updateThreadLoop() { copyRects->size(), reinterpret_cast<short *>(copyRects->data()), (char *) image.get(), width, height, - 0, (_frameId++ % INT32_MAX) + paintFlags, (_frameId++ % INT32_MAX) ); } else { // paint entire screen @@ -296,7 +302,7 @@ void XrdpUlalacaPrivate::updateThreadLoop() { copyRects->size(), reinterpret_cast<short *>(copyRects->data()), (char *) image.get(), width, height, - 0, (_frameId++ % INT32_MAX) + paintFlags, (_frameId++ % INT32_MAX) ); } |