summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/render.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Cleanups and version bump.mame0127u3 Aaron Giles2008-09-111-6/+6
|
* OSD notice: you now need to report separate mouse up/mouse down events Aaron Giles2008-09-091-38/+65
| | | | | | | | | | | | | | | | | | for this new support to work. Clickable input support. Mostly by Nathan. A few changes from the proposal: * as far as the layout is concerned, states are 0 (off) or 1 (on) and aren't impacted by the port's ACTIVE_HIGH or ACTIVE_LOW * instead of checking each individual field for a hit, we look to see what is hit once per frame and then just check against that; this is faster, but does limit us to a single hit item * added function input_field_by_tag_and_mask() to look up a particular input_field_config by tag and mask; this makes it possible to easily get the port default value or other information as necessary
* Cleanups. Aaron Giles2008-07-171-12/+12
|
* Replaced the crazy number of get/set functions for render containers with Aaron Giles2008-07-131-176/+52
| | | | a single get/set of a user settings struct.
* Note: I have done some testing, but there are probably more bugs Aaron Giles2008-07-121-26/+138
| | | | | | | | | | | | | | | | | | | lurking. If you run into anything odd, please let me know. Added new module uiinput.c which manages input for the user interface. The OSD is responsible for pushing mouse events and character events to this interface in order to support mouse movement and text-based input (currently only used for the select game menu). Added support for navigating through the menus using the mouse. [Nathan Woods, Aaron Giles] Redesigned the UI menus so that they can maintain a richer state. Now the menus can be generated once and reused, rather than requiring them to be regenerated on each frame. All menus also share a comment eventing system and navigation through them is managed centrally. Rewrote all the menus to use the new system, apart from the cheat menus, which are now disabled. Reorganized the video menu to make it easier to understand. [Aaron Giles]
* Restructured input port internals and cleaned up inptport.c: Aaron Giles2008-05-151-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Input ports are now maintained hierarchically. At the top level are input ports, which contain a list of fields. Each field represents one or more bits of the port. Certain fields such as DIP switches and configuration switches contain a list of settings, which can be selected. DIP switch fields can also contain a list of DIP switch locations. * Normalized behavior of port overrides (via PORT_INCLUDE or by defining multiple overlapping bits). All fields within a port are kept in strict increasing bit order, so altered DIP switches are now kept in the appropriate order. This addresses MAMETesters bug 01671. * Live port state is now fully separate from configured state. This is manifested in a similar way to devices, where a const list of ports can be managed either offline or live. Each port has a pointer to an opaque set of live state which is NULL when offline or valid when live. Each port also has a running_machine * which is also NULL when offline. * Because of this new arrangement, the conversion from tokens to a list of ports now requires reasonably complex memory allocation, so these port lists must be explicitly allocated and freed (they are not mantained by automatic resource allocation). * Custom and changed callbacks now take a pointer to a field config instead of a running machine. This provides more information about what field triggered the change notification. The machine can be found by referenced field->port->machine. * The inptport.c module has been cleaned up and many ambiguities resolved. Most of this is internal, though it did result in osd_customize_inputport_list() being changed to osd_customize_input_type_list(). The parameter to this function is now a linked list instead of an array, and the structures referenced have been reorganized somewhat. * Updated config.c to pass machine parameters to its callbacks. * Updated validity checks, XML output, and UI system to handle the new structures. * Moved large table of default input settings to a separate include file inpttype.h. * Removed gross hacks in trackfld and hyperspt NVRAM. These may be broken as a result.
* Cleanups and version bump.mame0123u6 Aaron Giles2008-03-191-1/+1
|
* Fixed pick_best_mode in both d3d and ddraw cases to manually extract Aaron Giles2008-03-171-4/+11
| | | | | | | | | refresh information from the device's inline_config, since this is done before the screen devices are start. Fixes 01491: switchres causes Exception at EIP=009413BF: ACCESS VIOLATION. Also, fixed render_target_get_minimum_size() to return nominal values if no screens are found.
* Next batch of machine->screen[] removal Zsolt Vasvari2008-03-121-3/+4
|
* - More machine->screen removal Zsolt Vasvari2008-03-111-4/+15
| | | | - Hooked up swapped videoram in Karnov properly -- same idea as Burger Time
* Removes the scrnum parameter from VIDEO_UPDATE, updates all drivers to use ↵ Zsolt Vasvari2008-03-101-86/+139
| | | | | | the screen device instead. render.c now uses screen devices
* - the public screen_state is made to only contain items that are currently ↵ Zsolt Vasvari2008-03-071-1/+1
| | | | | | | accessed by drivers - populating screen_state is moved from mame.c to video.c - defstate is gone -- the default screen parameters live in screen_config directly
* Remove (UINT32) type casts which break build with mingw - again Couriersud2008-03-051-4/+4
|
* * pass running_machine parameter to construct_map_##_name, i.e. ↵ Couriersud2008-03-051-4/+4
| | | | | | | | ADDRESS_MAP_START * Change "Machine->" to "machine->" in AM_BASE_MEMBER, AM_SIZE_MEMBER * Pass Machine in construct_address_map This is not perfect yet, but there is no need any longer to include deprecat.h in drivers using AM_*_MEMBER.
* Normalized function pointer typedefs: they are now all Aaron Giles2008-03-031-6/+6
| | | | | | | | | | suffixed with _func. Did this throughout the core and drivers I was familiar with. Fixed gcc compiler error with recent render.c changes. gcc does not like explicit (int) casts on float or double functions. This is fracking annoying and stupid, but there you have it.
* render.[ch]: change type of target_orientation in ↵ Couriersud2008-03-021-12/+12
| | | | target_compute_visible_area to int for consistency with other calls.
* Replaces mame_bitmap with bitmap_t Zsolt Vasvari2008-02-291-9/+9
| | | | Removes mame_bitmap
* Most important thing to note about this change: Aaron Giles2008-02-211-13/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ALL DRIVERS MUST NOW EXPLICITLY DECLARE THEIR SCREENS. Read on for more detail.... Added device tag as a parameter to the start function for devices. Updated MC6845 to accept this tag. Added new functions for iterating through the device list and counting devices of a given type. Updated search and iteration functions to accept DEVICE_TYPE_WILDCARD to work across all devices. Added new macro MDRV_DEVICE_CONFIG_DATA() which is used to set a single item in an inline data structure. Removed the per-screen palette_base. This was an idea that never really worked out, nor have we really needed it. Defined a new device type VIDEO_SCREEN. Currently this has no live functionality, but merely serves as a placeholder/identifier for video screens. Eventually some of the screen management code may move into the start/stop/reset functions. Changed MDRV_SCREEN_* macros to build up VIDEO_SCREEN devices rather than storing values in the screen[] array. Changed MDRV_SCREEN_ADD to specify a screen type (RASTER, VECTOR, LCD for the moment). Removed the older VIDEO_TYPE_RASTER and VIDEO_TYPE_VECTOR; this information is now determined by walking the screen list. Removed the screen[] array from machine_config. Modified all code referencing Machine->config->screen[] and changed it to iterate over the devices using the new video_screen_first() and video_screen_next() functions. (The next step will be to add video_* functions that accept a tag instead of screen index, and then move systems over to always referencing screens by tag instead of index.) Removed implicit screen #0. This means that ALL DRIVERS MUST EXPLICITLY DECLARE THEIR SCREENS. Updated all drivers to do so. While there, grouped all MDRV_SCREEN_* parameters together. Also removed unnecessary VIDEO_TYPE_RASTER and VIDEO_TYPE_VECTOR. Also removed VBLANK and bitmap format information from vector games. This was painful and very tedious. Changed game information to display info about all screens.
* The term "driver" is way overloaded in the system. Aaron Giles2008-02-181-6/+6
| | | | | machine->drv is now machine->config. Sorry.
* - Added deprecat.h that contains some deprecated/discouraged contructs (see ↵ Zsolt Vasvari2008-01-251-1/+1
| | | | | | | | | below) The idea is to create extra work if a driver wants to use these and hopefully gives an incentive to look for an alternate solution - Added #include of deprecat.h that rely on these contructs - Removed a bunch of unneccassary #include's from these files
* Copyright cleanup: Aaron Giles2008-01-061-1/+1
| | | | | | - removed years from copyright notices - removed redundant (c) from copyright notices - updated "the MAME Team" to be "Nicola Salmoria and the MAME Team"
* Reverting my change; I must be understanding this as well as I thought Nathan Woods2007-12-241-3/+0
|
* 1. Added assertion to append_render_primitive() to test for degenerate case Nathan Woods2007-12-241-6/+12
| | | | | 2. Added check that seems to occur on screenless systems
* Initial checkin of MAME 0.121.mame0121 Aaron Giles2007-12-171-0/+2948