mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
Revert "replace ARGB_8888 with RGB_565 where possible to halve memory"
This reverts commit b7e44195c6
.
This commit is contained in:
parent
94216a5fb9
commit
24eb63f109
4 changed files with 4 additions and 4 deletions
|
@ -844,7 +844,7 @@ public class BoardCanvas extends Canvas implements DrawCtx {
|
|||
|
||||
if ( !useDark ) {
|
||||
Bitmap src = ((BitmapDrawable)arrow).getBitmap();
|
||||
Bitmap bitmap = src.copy( Bitmap.Config.RGB_565, true );
|
||||
Bitmap bitmap = src.copy( Bitmap.Config.ARGB_8888, true );
|
||||
for ( int xx = 0; xx < bitmap.getWidth(); ++xx ) {
|
||||
for( int yy = 0; yy < bitmap.getHeight(); ++yy ) {
|
||||
if ( BLACK == bitmap.getPixel( xx, yy ) ) {
|
||||
|
|
|
@ -229,7 +229,7 @@ public class BoardView extends View implements BoardHandler, SyncedDraw {
|
|||
|
||||
if ( null == s_bitmap ) {
|
||||
s_bitmap = Bitmap.createBitmap( bmWidth, bmHeight,
|
||||
Bitmap.Config.RGB_565 );
|
||||
Bitmap.Config.ARGB_8888 );
|
||||
}
|
||||
if ( null == m_canvas ) {
|
||||
m_canvas = new BoardCanvas( m_parent, s_bitmap, m_jniThread,
|
||||
|
|
|
@ -179,7 +179,7 @@ public class ExpiringDelegate {
|
|||
private Drawable mkBackground( int pct )
|
||||
{
|
||||
Assert.assertTrue( 0 <= pct && pct <= 100 );
|
||||
Bitmap bm = Bitmap.createBitmap( 100, 1, Bitmap.Config.RGB_565 );
|
||||
Bitmap bm = Bitmap.createBitmap( 100, 1, Bitmap.Config.ARGB_8888 );
|
||||
Canvas canvas = new Canvas(bm);
|
||||
|
||||
Paint paint = new Paint();
|
||||
|
|
|
@ -343,7 +343,7 @@ public class GameUtils {
|
|||
int size = dim - (dim % nCols);
|
||||
|
||||
thumb = Bitmap.createBitmap( size, size,
|
||||
Bitmap.Config.RGB_565 );
|
||||
Bitmap.Config.ARGB_8888 );
|
||||
|
||||
XwJNI.board_figureLayout( gamePtr, gi, 0, 0, size, size,
|
||||
0, 0, 0, 20, 20, false, null );
|
||||
|
|
Loading…
Reference in a new issue