X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2Fplat%2FOpenGL.java;h=359e17afef393f8c25258734efc7554e1a60d352;hb=0df4d55e036bfe3a988300a403aa858027d8dc6b;hp=68ed8c14c486bb8cf1e80a346b0b53e87ff3c674;hpb=f8e6c67db2cd97e21ef53c1a3176e7786e9877b0;p=org.ibex.core.git diff --git a/src/org/xwt/plat/OpenGL.java b/src/org/xwt/plat/OpenGL.java index 68ed8c1..359e17a 100644 --- a/src/org/xwt/plat/OpenGL.java +++ b/src/org/xwt/plat/OpenGL.java @@ -247,16 +247,9 @@ abstract class OpenGL { // *{x,y}{1,2} key: d=dest s=src, p=bounds of this picture, i=intersection of s and p, pd = dest of this pic for(int i=0;i= ix2 || iy1 >= iy2) continue; // no intersection - pics[i][j].draw(px1, py1, ix1, iy1, ix2, iy2); + int px1 = j*psize + dx; + int py1 = i*psize + dy; + pics[i][j].draw(px1, py1, cx1, cy1, cx2, cy2); } } }