diff options
author | 2008-09-29 08:02:58 +0000 | |
---|---|---|
committer | 2008-09-29 08:02:58 +0000 | |
commit | 296347baab97261f619af60b114ad1e17e48fcd8 (patch) | |
tree | 90ae7f9571afbb410dae51044331729658e63e4c /src/emu/ui.c | |
parent | ef2fa89e4417b3b6d2f722a6552cc1160013201a (diff) |
Plumbed machine parameters through the renderer. Removed need for
deprecat.h.
Changed render_texture_set_bitmap() to accept a palette object
instead of a palette index. The renderer remains optimized for the
system palette but will work if objects have their own palette as
well.
Changed renderer to permit palettes for RGB and YUY textures. If
specified, these palettes specify a 32-entry (RGB15) or 256-entry
(others) lookup for applying additional brightness/contrast/gamma
on a per-texture basis.
Removed rescale notification. It never really worked that well and
violated proper layering.
Renamed palette_set_brightness() to palette_set_pen_contrast() for
clarity.
Changed palette objects to support global brightness/contrast/gamma
in addition to per-group and per-entry controls.
Diffstat (limited to 'src/emu/ui.c')
-rw-r--r-- | src/emu/ui.c | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/src/emu/ui.c b/src/emu/ui.c index ba289e82a64..329f2bfe501 100644 --- a/src/emu/ui.c +++ b/src/emu/ui.c @@ -94,9 +94,6 @@ static rgb_t messagebox_backcolor; static slider_state *slider_list; static slider_state *slider_current; -static int display_rescale_message; -static int allow_rescale; - /*************************************************************************** @@ -104,7 +101,6 @@ static int allow_rescale; ***************************************************************************/ static void ui_exit(running_machine *machine); -static int rescale_notifier(running_machine *machine, int width, int height); /* text generators */ static astring *disclaimer_string(running_machine *machine, astring *buffer); @@ -228,11 +224,6 @@ int ui_init(running_machine *machine) /* reset globals */ single_step = FALSE; ui_set_handler(handler_messagebox, 0); - - /* request callbacks when the renderer does resizing */ - render_set_rescale_notify(machine, rescale_notifier); - allow_rescale = 0; - display_rescale_message = FALSE; return 0; } @@ -256,26 +247,6 @@ static void ui_exit(running_machine *machine) /*------------------------------------------------- - rescale_notifier - notifier to trigger a - rescale message during long operations --------------------------------------------------*/ - -static int rescale_notifier(running_machine *machine, int width, int height) -{ - /* always allow rescaling for a "small" area and for screenless drivers */ - if (width < 500 || height < 500 || machine->primary_screen == NULL) - return TRUE; - - /* if we've currently disallowed rescaling, turn on a message next frame */ - if (allow_rescale == 0) - display_rescale_message = TRUE; - - /* only allow rescaling once we're sure the message is visible */ - return (allow_rescale == 1); -} - - -/*------------------------------------------------- ui_display_startup_screens - display the various startup screens -------------------------------------------------*/ @@ -416,19 +387,6 @@ void ui_update_and_render(running_machine *machine) /* cancel takes us back to the ingame handler */ if (ui_handler_param == UI_HANDLER_CANCEL) ui_set_handler(handler_ingame, 0); - - /* add a message if we are rescaling */ - if (display_rescale_message) - { - display_rescale_message = FALSE; - if (allow_rescale == 0) - allow_rescale = 2; - ui_draw_text_box("Updating Artwork...", JUSTIFY_CENTER, 0.5f, 0.5f, messagebox_backcolor); - } - - /* decrement the frame counter if it is non-zero */ - else if (allow_rescale != 0) - allow_rescale--; } |