Permalink
Browse files

Revert "Fix lines in border backgrounds."

This ended up not being the cause of the off-by-one issue I observed.

This reverts commit 582d6ed.
  • Loading branch information...
1 parent 582d6ed commit a66de858aa8b99b0c2a8317cf755472fd839a0fe @jamie-threerings jamie-threerings committed May 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/tripleplay/ui/bgs/BorderedBackground.java
@@ -27,7 +27,7 @@ protected Instance instantiate (final IDimension size) {
return new LayerInstance(PlayN.graphics().createImmediateLayer(new ImmediateLayer.Renderer() {
public void render (Surface surf) {
float width = size.width(), height = size.height();
- float bot = height, right = width;
+ float bot = height-1, right = width-1;
surf.setFillColor(_bgColor).fillRect(0, 0, width, height);
surf.setFillColor(_borderColor).
drawLine(0, 0, right, 0, _thickness).

0 comments on commit a66de85

Please sign in to comment.