Permalink
Browse files

front: Ensure app window is RGBA_8888 to avoid dither.

  • Loading branch information...
littleguy77 committed May 31, 2015
1 parent d6b213f commit 8c32718285b57d150ada3b3011d40d385c42d5fd
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/paulscode/android/mupen64plusae/game/GameLifecycleHandler.java
@@ -64,6 +64,7 @@
import android.view.SurfaceHolder;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.view.WindowManager.LayoutParams;
import android.widget.FrameLayout;
@@ -210,6 +211,7 @@ public void onCreateEnd( Bundle savedInstanceState )
// Listen to game surface events (created, changed, destroyed)
mSurface.getHolder().addCallback( this );
mSurface.getHolder().setFormat( PixelFormat.RGBA_8888 );
mActivity.getWindow().setFormat( PixelFormat.RGBA_8888 );
// Update the GameSurface size
mSurface.getHolder().setFixedSize( mGlobalPrefs.videoRenderWidth, mGlobalPrefs.videoRenderHeight );

0 comments on commit 8c32718

Please sign in to comment.