mirror of
https://github.com/azahar-emu/azahar.git
synced 2026-11-16 11:03:59 +01:00
SecondaryDisplay.kt: Remove redundant SurfaceTexture, preventing log spam
This commit is contained in:
1 parent
70f9379eef
commit
1830290e55
1 file changed
+1
-4
@@ -23,15 +23,12 @@ class SecondaryDisplay(val context: Context) {
|
||||
private val vd: VirtualDisplay
|
||||
|
||||
init {
|
||||
val st = SurfaceTexture(0)
|
||||
st.setDefaultBufferSize(1920, 1080)
|
||||
val vdSurface = Surface(st)
|
||||
vd = displayManager.createVirtualDisplay(
|
||||
"HiddenDisplay",
|
||||
1920,
|
||||
1080,
|
||||
320,
|
||||
vdSurface,
|
||||
null,
|
||||
DisplayManager.VIRTUAL_DISPLAY_FLAG_PRESENTATION
|
||||
)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user