For more details, see D12452.
Details
Details
- Reviewers
davidedmundson fredrik mart - Group Reviewers
KWin - Commits
- R108:309a77eedfed: [effects/backgroundcontrast] Calculate correct y-coord of the copy rect
Diff Detail
Diff Detail
- Repository
- R108 KWin
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
As this is clearly more readable:
y = sg.height() - (r.y() - sg.y() + r.height())
Put it in the code rather than reobfuscating it
Comment Actions
@davidedmundson it seems like not only blitFromFramebuffer needs to convert coords from "virtual space" to "screen space". Maybe, there should be a helper like QRect GLRenderTarget::mapToScreenCoords(const QRect& rect) (or mapToScreenSpace). What do you think?
Comment Actions
Not sure about mapFrom because we map coords to [OpenGL] screen space. But I guess that's a topic for another discussion.
Update: OK, mapFromVirtualSpace seems to be a good name.
Do you accept this change? :)
Comment Actions
I asked sysadmins to withdraw my dev account(for security reasons) because I won't be contributing any time soon.