javauis/lcdui_akn/javalcdui/javasrc/javax/microedition/lcdui/game/LayerManager.java
branchRCL_3
changeset 77 7cee158cb8cd
parent 19 04becd199f91
child 83 26b2b12093af
equal deleted inserted replaced
71:d5e927d5853b 77:7cee158cb8cd
   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) && (iViewWidth<Integer.MAX_VALUE))
   111         if ((iViewWidth<Integer.MAX_VALUE) && (iViewHeight<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);