From bbfa375dfe682044145a592b6c77e023303563e8 Mon Sep 17 00:00:00 2001 From: eehouse Date: Fri, 14 May 2010 12:42:44 +0000 Subject: [PATCH] erase cached tile rects when doing layout to fix bug where tile letters are partially offtile when a game first opened game in landscape changes to portrait mode. --- .../android/XWords4/src/org/eehouse/android/xw4/BoardView.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardView.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardView.java index b211415fe..b8cdc4389 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardView.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardView.java @@ -269,6 +269,8 @@ public class BoardView extends View implements DrawCtx, BoardHandler, m_layoutWidth = width; m_layoutHeight = height; m_fontDims = null; // force recalc of font + m_letterRect = null; + m_valRect = null; BoardDims dims = figureBoardDims( width, height, m_gi ); m_top = dims.top;