From 77d38b15b1963adefe78fae50b2e7bc931ed7b56 Mon Sep 17 00:00:00 2001 From: rogerman Date: Mon, 20 Sep 2021 11:02:24 -0700 Subject: [PATCH] Linux Port (CLI): Take a shot in the dark at #471, but I have no way to test it. - It's a regression from commit 4578728. I'm suspecting that this particular buffer is to be read as 32-bit since all of the other Linux frontends explicitly used 16-bit except for this one. --- desmume/src/frontend/posix/cli/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desmume/src/frontend/posix/cli/main.cpp b/desmume/src/frontend/posix/cli/main.cpp index d5d420d53..5cbb17772 100644 --- a/desmume/src/frontend/posix/cli/main.cpp +++ b/desmume/src/frontend/posix/cli/main.cpp @@ -708,7 +708,7 @@ int main(int argc, char ** argv) { // Now that gtk port draws to RGBA buffer directly, the other one // has to use ugly ways to make HUD rendering work again. // desmume gtk: Sorry desmume-cli :( - T_AGG_RGB555 agg_targetScreen_cli((u8 *)GPU->GetDisplayInfo().masterNativeBuffer16, 256, 384, 512); + T_AGG_RGB555 agg_targetScreen_cli((u8 *)GPU->GetDisplayInfo().customBuffer, 256, 384, 512); aggDraw.hud = &agg_targetScreen_cli; aggDraw.hud->setFont("verdana18_bold");