javauis/lcdui_akn/javalcdui/javasrc/javax/microedition/lcdui/game/LayerManager.java
branchRCL_3
changeset 83 26b2b12093af
parent 77 7cee158cb8cd
equal deleted inserted replaced
77:7cee158cb8cd 83:26b2b12093af
   106         final int clipHeight = aGraphics.getClipHeight();
   106         final int clipHeight = aGraphics.getClipHeight();
   107         final int transX = aGraphics.getTranslateX();
   107         final int transX = aGraphics.getTranslateX();
   108         final int transY = aGraphics.getTranslateY();
   108         final int transY = aGraphics.getTranslateY();
   109 
   109 
   110         // intersect Graphics clip region with View Window
   110         // intersect Graphics clip region with View Window
   111         if ((iViewWidth<Integer.MAX_VALUE) && (iViewHeight<Integer.MAX_VALUE))
   111         if ((iViewWidth<Integer.MAX_VALUE) && (iViewWidth<Integer.MAX_VALUE))
   112             aGraphics.clipRect(aX,aY,iViewWidth,iViewHeight);
   112             aGraphics.clipRect(aX,aY,iViewWidth,iViewHeight);
   113 
   113 
   114         // translate the graphics object so the point (aX,aY) corresponds to
   114         // translate the graphics object so the point (aX,aY) corresponds to
   115         // the location of the viewWindow in the coordinate system of the LayerManager.
   115         // the location of the viewWindow in the coordinate system of the LayerManager.
   116         aGraphics.translate(-iViewX,-iViewY);
   116         aGraphics.translate(-iViewX,-iViewY);