Obviously copy & pasta.

Fix them, and the background wallpaper size and aspect ratio becomes
correct.

Signed-off-by: Pekka Paalanen <[email protected]>
---
 plugins/opengl/src/paint.cpp |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/plugins/opengl/src/paint.cpp b/plugins/opengl/src/paint.cpp
index 1627968..84a13be 100644
--- a/plugins/opengl/src/paint.cpp
+++ b/plugins/opengl/src/paint.cpp
@@ -162,13 +162,13 @@ PrivateGLScreen::paintBackground (const GLMatrix   
&transform,
                vertexData[11] = 0.0f;
 
                textureData[0] = COMP_TEX_COORD_X (bg->matrix (), pBox->x1);
-               textureData[1] = COMP_TEX_COORD_X (bg->matrix (), pBox->y1);
+               textureData[1] = COMP_TEX_COORD_Y (bg->matrix (), pBox->y1);
                textureData[2] = COMP_TEX_COORD_X (bg->matrix (), pBox->x1);
-               textureData[3] = COMP_TEX_COORD_X (bg->matrix (), pBox->y2);
+               textureData[3] = COMP_TEX_COORD_Y (bg->matrix (), pBox->y2);
                textureData[4] = COMP_TEX_COORD_X (bg->matrix (), pBox->x2);
-               textureData[5] = COMP_TEX_COORD_X (bg->matrix (), pBox->y1);
+               textureData[5] = COMP_TEX_COORD_Y (bg->matrix (), pBox->y1);
                textureData[6] = COMP_TEX_COORD_X (bg->matrix (), pBox->x2);
-               textureData[7] = COMP_TEX_COORD_X (bg->matrix (), pBox->y2);
+               textureData[7] = COMP_TEX_COORD_Y (bg->matrix (), pBox->y2);
 
                streamingBuffer->addVertices (4, vertexData);
                streamingBuffer->addTexCoords (0, 4, textureData);
-- 
1.7.3.4

_______________________________________________
dev mailing list
[email protected]
http://lists.compiz.org/mailman/listinfo/dev

Reply via email to