aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-10-02 07:56:38 +0200
committerdec05eba <dec05eba@protonmail.com>2022-10-02 07:56:38 +0200
commit84d17ad01f09cea30ee0bd015112d23c834cfcf2 (patch)
tree7be62d2908803d663dea41022e91a32a56b27c64
parent4afad3d3ebae6136a57b5df5df2ba1081e399442 (diff)
Do not use seams hack when using mpv
-rw-r--r--src/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 268a86d..1f28de4 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -2000,7 +2000,8 @@ void CMainApplication::AddCubeToScene( const glm::mat4 &mat, std::vector<float>
if(stretch)
arrow_ratio = width_ratio * 2.0;
} else if (projection_mode == ProjectionMode::SPHERE360) {
- border_width_return += 2; // Meh, hac k to deal with seams a bit
+ if(!mpv_file)
+ border_width_return += 2; // Meh, hac k to deal with seams a bit
double px = (double)border_width_return / (double)pixmap_texture_width;
double py = (double)border_width_return / (double)pixmap_texture_height;