mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +01:00
reduce min font size
This commit is contained in:
parent
694d88bbdb
commit
35248cbef4
1 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ import junit.framework.Assert;
|
|||
|
||||
public class BoardView extends View implements BoardHandler, SyncedDraw {
|
||||
|
||||
private static final float MIN_FONT_DIPS = 14.0f;
|
||||
private static final float MIN_FONT_DIPS = 10.0f;
|
||||
private static final int MULTI_INACTIVE = -1;
|
||||
|
||||
private static Bitmap s_bitmap; // the board
|
||||
|
@ -220,7 +220,7 @@ public class BoardView extends View implements BoardHandler, SyncedDraw {
|
|||
Rect scratch = new Rect();
|
||||
paint.getTextBounds( "-00:00", 0, 6, scratch );
|
||||
int timerWidth = scratch.width();
|
||||
int fontWidth = timerWidth / 6;
|
||||
int fontWidth = Math.min(m_defaultFontHt, timerWidth / 6);
|
||||
m_jniThread.handle( JNIThread.JNICmd.CMD_LAYOUT, width, height,
|
||||
fontWidth, m_defaultFontHt );
|
||||
// We'll be back....
|
||||
|
|
Loading…
Reference in a new issue