Linux (cli): Fix HUD rendering (regression in [r5004]).

This commit is contained in:
alvinwong 2014-03-04 10:07:33 +00:00
parent 2ac5065fb4
commit 11ff936fa1
1 changed files with 7 additions and 1 deletions

View File

@ -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;