From 11ff936fa1fabeb7e0e06d86e0e1add4f5847911 Mon Sep 17 00:00:00 2001 From: alvinwong Date: Tue, 4 Mar 2014 10:07:33 +0000 Subject: [PATCH] Linux (cli): Fix HUD rendering (regression in [r5004]). --- desmume/src/cli/main.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/desmume/src/cli/main.cpp b/desmume/src/cli/main.cpp index e8a47224a..f73aac783 100644 --- a/desmume/src/cli/main.cpp +++ b/desmume/src/cli/main.cpp @@ -485,6 +485,8 @@ static void desmume_cycle(struct ctrls_event_config * cfg) SPU_Emulate_user(); } +T_AGG_RGB555 agg_targetScreen_cli(GPU_screen, 256, 384, 512); + int main(int argc, char ** argv) { class configured_features my_config; struct ctrls_event_config ctrls_cfg; @@ -747,7 +749,11 @@ int main(int argc, char ** argv) { #ifdef HAVE_LIBAGG Desmume_InitOnce(); Hud.reset(); - aggDraw.hud->attach(GPU_screen, 256, 384, 512); + // 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 :( + aggDraw.hud = &agg_targetScreen_cli; + aggDraw.hud->setFont("verdana18_bold"); #endif ctrls_cfg.boost = 0;