subsurface broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PyGL3Display |
New
|
Undecided
|
Unassigned |
Bug Description
PygameSurface.
Here is a fix that works for me:
--- /pygl3display/
+++ /pygl3display/
@@ -71,20 +71,19 @@
rheight = min(dy + rect.height, self.intCoords.
- atlasWidth, atlasHeight = self.atlas.size
- top = childIntCoords.y / atlasHeight
- bottom = (childIntCoords.y + childIntCoords.
- left = childIntCoords.x / atlasWidth
- right = (childIntCoords.x + childIntCoords.
+ size = self.atlas.size
+ top = childIntCoords.y / size
+ bottom = (childIntCoords.y + childIntCoords.
+ left = childIntCoords.x / size
+ right = (childIntCoords.x + childIntCoords.
- tl = (left, top),
- tr = (right, top),
- br = (right, bottom),
- bl = (left, bottom)
+ top = top, left = left,
+ width = right - left,
+ height = bottom - top
- return Image(self.atlas, childIntCoords, floatCoords)
+ return Image(self.atlas, childIntCoords, floatCoords, wrapped=False)
class GPUImage(Image):
"""A GPUImage is an image which only exists on the GPU, and as such
--- /pygl3display/
+++ /pygl3display/
@@ -164,7 +165,9 @@
def subsurface(self, rect):
# TODO: This will need to convert the Pygame rect to a GL rect
- ret = PygameSurface(None)
+ rect=pygame.
+ ret = PygameSurface(
ret.parent = self
Hello,
since I have fixed it myself, this is not high priority for me.