Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Eskil Abrahamsen-Blomfeldt
VNC Server
Commits
b96270af
Commit
b96270af
authored
Mar 18, 2022
by
Eskil Abrahamsen-Blomfeldt
Browse files
Hotfix flipped content on macOS
parent
f5da5052
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/quickvnc/qvncitem.cpp
View file @
b96270af
...
...
@@ -341,7 +341,16 @@ void QVncItem::grabTexture()
auto
*
rhiLayer
=
qobject_cast
<
QSGRhiLayer
*>
(
tex
);
if
(
rhiLayer
)
{
auto
*
wp
=
QQuickWindowPrivate
::
get
(
window
());
static
bool
flipped
=
wp
->
rhi
->
isYUpInFramebuffer
();
static
bool
flipped
=
#ifdef Q_OS_MACOS
// ### On mac we get isYUpInFramebuffer() = false and isYUpInNDC() = true
// and the last one seems to be the correct one. But until the difference
// is understood, we just hack this to true on macOS as a hotfix.
true
;
Q_UNUSED
(
wp
);
#else
wp
->
rhi
->
isYUpInFramebuffer
();
#endif
imgFlipped
=
flipped
;
newImg
=
rhiLayer
->
toImage
();
}
else
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment