Skip to content

Commit

Permalink
front: Ensure GameSurface is RGBA_8888 to avoid dither.
Browse files Browse the repository at this point in the history
  • Loading branch information
littleguy77 committed May 31, 2015
1 parent 763cb30 commit d6b213f
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -52,6 +52,7 @@
import android.app.Activity; import android.app.Activity;
import android.content.Context; import android.content.Context;
import android.graphics.Color; import android.graphics.Color;
import android.graphics.PixelFormat;
import android.graphics.drawable.ColorDrawable; import android.graphics.drawable.ColorDrawable;
import android.os.Bundle; import android.os.Bundle;
import android.os.Vibrator; import android.os.Vibrator;
Expand Down Expand Up @@ -208,6 +209,7 @@ public void onCreateEnd( Bundle savedInstanceState )


// Listen to game surface events (created, changed, destroyed) // Listen to game surface events (created, changed, destroyed)
mSurface.getHolder().addCallback( this ); mSurface.getHolder().addCallback( this );
mSurface.getHolder().setFormat( PixelFormat.RGBA_8888 );


// Update the GameSurface size // Update the GameSurface size
mSurface.getHolder().setFixedSize( mGlobalPrefs.videoRenderWidth, mGlobalPrefs.videoRenderHeight ); mSurface.getHolder().setFixedSize( mGlobalPrefs.videoRenderWidth, mGlobalPrefs.videoRenderHeight );
Expand Down

0 comments on commit d6b213f

Please sign in to comment.