From 7a8cd492d540c8c02e4e9d89d3c08ae12da56623 Mon Sep 17 00:00:00 2001 From: ml Date: Wed, 10 Jun 2026 19:02:29 +0200 Subject: [PATCH] Fix C64 display rendering and keyboard matrix - Remove android:background from C64DisplayView: SurfaceView's XML background painted over the surface, hiding all rendered content - Fix pixel byte order: copyPixelsFromBuffer reads [R,G,B,A] bytes, so physical colors must be packed as ABGR (not ARGB) to avoid R/B swap - Fix six wrong C64 keyboard matrix positions (1, 2, Q, E, R, Y) taken from the authoritative VICE hardware matrix table --- .../.idea/deploymentTargetSelector.xml | 4 +- .../app/build.gradle.kts | 1 + .../C64DisplayView.kt | 4 +- .../C64Engine.kt | 23 ++- .../MainActivity.kt | 49 +++--- .../app/src/main/jni/CMakeLists.txt | 8 + .../app/src/main/jni/vice_jni.c | 145 +++++++++++++++--- .../app/src/main/res/layout/activity_main.xml | 3 +- .../gradle/libs.versions.toml | 2 + 9 files changed, 187 insertions(+), 52 deletions(-) diff --git a/SchwertUndMagieOnPebbleCompanionApp/.idea/deploymentTargetSelector.xml b/SchwertUndMagieOnPebbleCompanionApp/.idea/deploymentTargetSelector.xml index c959717..f5f9d3d 100644 --- a/SchwertUndMagieOnPebbleCompanionApp/.idea/deploymentTargetSelector.xml +++ b/SchwertUndMagieOnPebbleCompanionApp/.idea/deploymentTargetSelector.xml @@ -4,10 +4,10 @@