fix to compile post-merge

This commit is contained in:
Eric House 2013-10-31 08:14:14 -07:00
parent d7a1f53157
commit 9cd7dd6c98

View file

@ -415,6 +415,30 @@ public class BoardView extends View implements BoardHandler, SyncedDraw {
return m_pendingScore;
}
public Bitmap getScaledBoard()
{
Bitmap result = null;
if ( GitVersion.THUMBNAIL_SUPPORTED ) {
int divisor = XWPrefs.getThumbScale( m_context );
if ( 0 < divisor ) {
int[] dims = new int[2];
Rect rect = new Rect();
XwJNI.board_getActiveRect( m_jniGamePtr, rect, dims );
Bitmap tmpb =
Bitmap.createBitmap( s_bitmap, rect.left, rect.top,
1 + rect.width(), 1 + rect.height() );
result = Bitmap.createScaledBitmap( tmpb,
rect.width() / divisor,
rect.height() / divisor,
false );
}
}
return result;
}
private int getSpacing( MotionEvent event )
{
int result;