Tested only on Windows 7; the background image is simply mirrored vertically, I only needed to invert the V texcoords to make the up up again, and the down, down again
Relevant Hg shelve:
Code: Select all
diff --git a/layouteditor/qtwidgets.py b/layouteditor/qtwidgets.py
--- a/layouteditor/qtwidgets.py
+++ b/layouteditor/qtwidgets.py
@@ -532,4 +532,6 @@
glBegin(GL_QUADS)
glVertex2f(x1, y1)
+ glTexCoord2f(1, 1)
+ glVertex2f(x2, y1)
glTexCoord2f(1, 0)
@@ -535,4 +537,2 @@
glTexCoord2f(1, 0)
- glVertex2f(x2, y1)
- glTexCoord2f(1, 1)
glVertex2f(x2, y2)
@@ -538,2 +538,4 @@
glVertex2f(x2, y2)
+ glTexCoord2f(0, 0)
+ glVertex2f(x1, y2)
glTexCoord2f(0, 1)
@@ -539,6 +541,4 @@
glTexCoord2f(0, 1)
- glVertex2f(x1, y2)
- glTexCoord2f(0, 0)
glEnd()
glDisable(GL_TEXTURE_2D)