File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 43
43
#include " ReceiveBuffer.h"
44
44
45
45
#include < cassert>
46
+ #include < unordered_map>
46
47
47
48
namespace deflect
48
49
{
@@ -75,9 +76,15 @@ class FrameDispatcher::Impl
75
76
76
77
void mirrorTilesPositionsVertically (Frame& frame) const
77
78
{
78
- const auto height = frame.computeDimensions ().height ();
79
+ std::unordered_map<int , int > heights;
80
+ for (const auto & tile : frame.tiles )
81
+ heights[tile.channel ] = 0 ;
82
+
83
+ for (auto & entry : heights)
84
+ entry.second = frame.computeDimensions (entry.first ).height ();
85
+
79
86
for (auto & tile : frame.tiles )
80
- tile.y = height - tile.y - tile.height ;
87
+ tile.y = heights[tile. channel ] - tile.y - tile.height ;
81
88
}
82
89
83
90
bool allConnectionsClosed (const QString& uri) const
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ Changelog {#Changelog}
4
4
## Deflect 1.0
5
5
6
6
### 1.0.1 (master)
7
+ * [ 207] ( https://github.com/BlueBrain/Deflect/pull/207 ) :
8
+ Fix wrong vertical frame mirror for different sized channels
7
9
* [ 203] ( https://github.com/BlueBrain/Deflect/pull/203 ) :
8
10
QmlStreamer resizes the window only if the received size event is within the
9
11
specified min/max size hints.
You can’t perform that action at this time.
0 commit comments