Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Planet Selection Screen not rendering correctly on real phone #305

Merged
merged 4 commits into from
Dec 19, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: set GLSurfaceView to be transparent and place it in the backgrou…
…nd explicitly in PlanetSurfaceView
  • Loading branch information
Kenzoud committed Dec 19, 2024
commit 45b558a6afd7eb4a434f5cec9ba88d847d37f89a
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@ package com.github.lookupgroup27.lookup.model.planetselection

import android.annotation.SuppressLint
import android.content.Context
import android.graphics.PixelFormat
import android.opengl.GLSurfaceView
import com.github.lookupgroup27.lookup.model.map.planets.PlanetData

@@ -26,6 +27,11 @@ class PlanetSurfaceView(context: Context, private var planet: PlanetData) : GLSu

// Render only when the content changes
renderMode = RENDERMODE_CONTINUOUSLY

// Enable transparency
setZOrderOnTop(false)
setZOrderMediaOverlay(false)
holder.setFormat(PixelFormat.TRANSLUCENT)
}

/**
Loading