Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider becoming a contibuting member by either clicking this text or the Patreon link on the right.

Patreon

If neither of those of work for you, you can donate any amount by clicking here.

Recommended Posts

Posted

as explained in this thread http://www.gameex.info/forums/index.php?sh...amp;#entry24068 where brian wants to compile mame plus without nag screens i've followed this guide.

it worked really well but mame still draws the white box before every game. now it doesn't write loading or anything else so i assume i did everything correctly...

ii mean the white box is really no big deal but now for 0.126 of mame plus coming up i would love to get rid of this.

hk, can you point out the line in ui.c that has to be edited to get rid of the white box?

of course only if you still remember this ;)

thanks, mate

Posted

Found my old post about this, should point you in the right direction.

* Removing disclaimer

Mame\src\emu\ui.c

int ui_display_startup_screens(int first_time, int show_disclaimer)

show_gameinfo = show_warnings = show_disclaimer = FALSE;

/* disable everything if we are using -str */
if (!first_time || (str > 0 && str < 60*5))
show_gameinfo = show_warnings = show_disclaimer = FALSE;

void ui_update_and_render(void)

//ui_draw_text_box("Updating Artwork...", JUSTIFY_CENTER, 0.5f, 0.5f, messagebox_backcolor);

static UINT32 handler_messagebox(UINT32 state)
{
//ui_draw_text_box(messagebox_text, JUSTIFY_LEFT, 0.5f, 0.5f, messagebox_backcolor);
return 0;
}

* Removing border

Mame\src\emu\render.c

	else
{
/* render_primitive *prim;

prim = alloc_render_primitive(RENDER_PRIMITIVE_QUAD);
set_render_bounds_xy(&prim->bounds, 0.0f, 0.0f, (float)target->width, (float)target->height);
set_render_color(&prim->color, 1.0f, 1.0f, 1.0f, 1.0f);
prim->texture.base = NULL;
prim->flags = PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA);
append_render_primitive(&target->primlist[listnum], prim);

prim = alloc_render_primitive(RENDER_PRIMITIVE_QUAD);
set_render_bounds_xy(&prim->bounds, 1.0f, 1.0f, (float)(target->width - 1), (float)(target->height - 1));
set_render_color(&prim->color, 1.0f, 0.0f, 0.0f, 0.0f);
prim->texture.base = NULL;
prim->flags = PRIMFLAG_BLENDMODE(BLENDMODE_ALPHA);
append_render_primitive(&target->primlist[listnum], prim); */
}

Posted

For all the lazy people I attached the modified render.c and ui.c for mame plus 0.126

I just compiled and tested mame plus and it runs great

thanks, m8

much appreciated :)

render_ui.rar

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...