From 129f302938a04ec6d94c31b570fec4b4e9fed2e5 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Wed, 8 Dec 2004 00:08:44 +0000 Subject: [PATCH] Put the pause label in the middle of the visible board. This fixes the bug where there was no pause message in carpentry. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3264 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/puzzle/client/PuzzleBoardView.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/java/com/threerings/puzzle/client/PuzzleBoardView.java b/src/java/com/threerings/puzzle/client/PuzzleBoardView.java index 37cb7fc30..bc13ca10b 100644 --- a/src/java/com/threerings/puzzle/client/PuzzleBoardView.java +++ b/src/java/com/threerings/puzzle/client/PuzzleBoardView.java @@ -1,5 +1,5 @@ // -// $Id: PuzzleBoardView.java,v 1.10 2004/11/12 01:09:48 mdb Exp $ +// $Id$ // // Narya library - tools for developing networked games // Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved @@ -378,8 +378,9 @@ public abstract class PuzzleBoardView extends VirtualMediaPanel // if the action is paused, indicate as much if (_pauseLabel != null) { Dimension d = _pauseLabel.getSize(); - _pauseLabel.render(gfx, (_bounds.width - d.width) / 2, - (_bounds.height - d.height) / 2); + _pauseLabel.render(gfx, + _vbounds.x + (_vbounds.width - d.width) / 2, + _vbounds.y + (_vbounds.height - d.height) / 2); } }