[vassalengine-svn] SF.net SVN: vassalengine:[8518] ASL-src/trunk/src/VASL/build/module/map/ boardPi
Brought to you by:
rodneykinney,
uckelman
From: <uck...@us...> - 2012-12-25 01:04:30
|
Revision: 8518 http://vassalengine.svn.sourceforge.net/vassalengine/?rev=8518&view=rev Author: uckelman Date: 2012-12-25 01:04:23 +0000 (Tue, 25 Dec 2012) Log Message: ----------- Formatting. Modified Paths: -------------- ASL-src/trunk/src/VASL/build/module/map/boardPicker/ASLBoard.java Modified: ASL-src/trunk/src/VASL/build/module/map/boardPicker/ASLBoard.java =================================================================== --- ASL-src/trunk/src/VASL/build/module/map/boardPicker/ASLBoard.java 2012-12-25 01:04:10 UTC (rev 8517) +++ ASL-src/trunk/src/VASL/build/module/map/boardPicker/ASLBoard.java 2012-12-25 01:04:23 UTC (rev 8518) @@ -351,6 +351,7 @@ } return val; } + private class BoardOp extends AbstractTiledOpImpl implements SourceOp { private String boardState; @@ -389,9 +390,20 @@ Rectangle visible = new Rectangle(cropBounds.getLocation(), ASLBoard.this.bounds().getSize()); visible.width = (int) Math.round(visible.width / magnification); visible.height = (int) Math.round(visible.height / magnification); - g.drawImage(base.getImage(null), 0, 0, visible.width, visible.height, cropBounds.x, cropBounds.y, cropBounds.x + visible.width, cropBounds.y - + visible.height, null); - for (Enumeration e = ASLBoard.this.getOverlays(); e.hasMoreElements();) { + g.drawImage( + base.getImage(null), + 0, + 0, + visible.width, + visible.height, + cropBounds.x, + cropBounds.y, + cropBounds.x + visible.width, + cropBounds.y + visible.height, + null + ); + + for (Enumeration e = ASLBoard.this.getOverlays(); e.hasMoreElements(); ) { Overlay o = (Overlay) e.nextElement(); Rectangle r = visible.intersection(o.bounds()); if (!r.isEmpty()) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |